From 03df0673b7851ebeba9b00fadfd5456655fc15cb Mon Sep 17 00:00:00 2001 From: pomelo-nwu Date: Mon, 9 Oct 2023 19:29:08 +0800 Subject: [PATCH] feat: fix error --- .../src/CommonStyleSetting/GroupSelect/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gi-common-components/src/CommonStyleSetting/GroupSelect/index.tsx b/packages/gi-common-components/src/CommonStyleSetting/GroupSelect/index.tsx index edd6d0c23..3fbe1517c 100644 --- a/packages/gi-common-components/src/CommonStyleSetting/GroupSelect/index.tsx +++ b/packages/gi-common-components/src/CommonStyleSetting/GroupSelect/index.tsx @@ -16,7 +16,7 @@ const iconMap = { number: , }; -const match = (a: string, b: string) => a.toLocaleLowerCase().includes(b.toLocaleLowerCase()); +const match = (a: string, b: string) => String(a).toLocaleLowerCase().includes(String(b).toLocaleLowerCase()); const getTypeName = (sd: SchemaDatum) => ('nodeType' in sd ? sd.nodeType : sd.edgeType);