aboutsummaryrefslogtreecommitdiff
path: root/src/api/ContextMenu.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/ContextMenu.ts')
-rw-r--r--src/api/ContextMenu.ts2
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;