From 4d666d65928ed049181b9786705d449dffeeb018 Mon Sep 17 00:00:00 2001 From: codetypes Date: Wed, 19 Mar 2025 12:29:34 +0800 Subject: [PATCH] fix search arg value --- src/components/editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/editor.tsx b/src/components/editor.tsx index f95da72..15dc94a 100644 --- a/src/components/editor.tsx +++ b/src/components/editor.tsx @@ -365,7 +365,7 @@ export const Editor: FC = ({ onUpdate: updateState, data: editor, . }; const includeString = (content: string | undefined, option: FilterOption) => { - if (!content) { + if (!content || typeof content !== "string") { return false; } else if (option.filterCase) { return content.includes(option.filterStr);