diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-03-08 04:01:24 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 04:01:24 -0300 |
commit | 253183a16a78ce0ebc183af7e078b61eb0d4d758 (patch) | |
tree | d22bd2683c6adfd91e988f7f58cfeaae718e5e32 /src/api/ContextMenu.ts | |
parent | 0fb3901a185327f3de39682ea9fc6e809b935807 (diff) | |
download | Vencord-253183a16a78ce0ebc183af7e078b61eb0d4d758.tar.gz Vencord-253183a16a78ce0ebc183af7e078b61eb0d4d758.tar.bz2 Vencord-253183a16a78ce0ebc183af7e078b61eb0d4d758.zip |
Fix Emote Cloner and improve ReverseImageSearch (#489)
Diffstat (limited to 'src/api/ContextMenu.ts')
-rw-r--r-- | src/api/ContextMenu.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/ContextMenu.ts b/src/api/ContextMenu.ts index 6467117..9a8d7b6 100644 --- a/src/api/ContextMenu.ts +++ b/src/api/ContextMenu.ts @@ -90,7 +90,7 @@ export function removeGlobalContextMenuPatch(patch: GlobalContextMenuPatchCallba */ export function findGroupChildrenByChildId(id: string, children: Array<React.ReactElement>, itemsArray?: Array<React.ReactElement>): Array<React.ReactElement> | null { for (const child of children) { - if (child === null) continue; + if (child == null) continue; if (child.props?.id === id) return itemsArray ?? null; |