mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
fixed bug
This commit is contained in:
parent
7aea369235
commit
100ecc0035
@ -92,7 +92,7 @@ export const Layer = (props: LayerProps) => {
|
||||
filter(item => {
|
||||
return searchPhrase === ''
|
||||
? item :
|
||||
item.name.toLowerCase().includes(searchPhrase.toLowerCase()) || item.text.toLowerCase().includes(searchPhrase.toLowerCase())
|
||||
item.name?.toLowerCase().includes(searchPhrase.toLowerCase()) || item.text?.toLowerCase().includes(searchPhrase.toLowerCase())
|
||||
}).
|
||||
filter(item => item.layer && isLayerVisible(item.layer)).
|
||||
map((item: Item) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user