fix search arg value
This commit is contained in:
1 parent
7395935e6f
commit
4d666d6592
1 file changed
+1
-1
@@ -365,7 +365,7 @@ export const Editor: FC<EditorProps> = ({ 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);
|
||||
|
||||
Reference in new issue
Block a user