fix search arg value

This commit is contained in:
codetypes committed 2025-03-19 12:29:34 +08:00
1 parent 7395935e6f
commit 4d666d6592
1 file changed
+1 -1
+1 -1
View File
@@ -365,7 +365,7 @@ export const Editor: FC<EditorProps> = ({ onUpdate: updateState, data: editor, .
}; };
const includeString = (content: string | undefined, option: FilterOption) => { const includeString = (content: string | undefined, option: FilterOption) => {
if (!content) { if (!content || typeof content !== "string") {
return false; return false;
} else if (option.filterCase) { } else if (option.filterCase) {
return content.includes(option.filterStr); return content.includes(option.filterStr);