File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
components/AsyncSingleSelect
containers/SidePanel/SearchPanel/hooks Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,10 @@ const AsyncSingleSelect: FC<AsyncSingleSelectProps> = ({
4747 const nextOptions = options
4848 . filter ( ( option : Option ) => {
4949 const optionLabel = option . label as string ;
50- return optionLabel . toLowerCase ( ) . includes ( term . toLowerCase ( ) ) ;
50+ return optionLabel
51+ . toString ( )
52+ . toLowerCase ( )
53+ . includes ( term . toString ( ) . toLowerCase ( ) ) ;
5154 } )
5255 . slice ( 0 , 10 ) ;
5356 setAsyncOptions ( nextOptions ) ;
Original file line number Diff line number Diff line change @@ -33,7 +33,10 @@ const useGraphSearch = () => {
3333 const node : Node = graphVisible . nodes . find ( ( node : Node ) => {
3434 const nodeProperty : string = get ( node , accessor , '' ) ;
3535
36- return nodeProperty . toLowerCase ( ) === searchCase . toLowerCase ( ) ;
36+ return (
37+ nodeProperty . toString ( ) . toLowerCase ( ) ===
38+ searchCase . toString ( ) . toLowerCase ( )
39+ ) ;
3740 } ) ;
3841
3942 return node ;
@@ -43,7 +46,10 @@ const useGraphSearch = () => {
4346 const node : Edge = graphVisible . edges . find ( ( edge : Edge ) => {
4447 const nodeProperty : string = get ( edge , accessor , '' ) ;
4548
46- return nodeProperty . toLowerCase ( ) === searchCase . toLowerCase ( ) ;
49+ return (
50+ nodeProperty . toString ( ) . toLowerCase ( ) ===
51+ searchCase . toString ( ) . toLowerCase ( )
52+ ) ;
4753 } ) ;
4854
4955 return node ;
You can’t perform that action at this time.
0 commit comments