feat: allow filtering furnichooser by id
This commit is contained in:
parent
02029b4c6b
commit
3d8e3c5cd5
|
@ -20,7 +20,7 @@ export const ChooserWidgetView: FC<ChooserWidgetViewProps> = props => {
|
|||
const value = searchValue.toLocaleLowerCase();
|
||||
|
||||
return items
|
||||
.filter(item => item.name?.toLocaleLowerCase().includes(value))
|
||||
.filter(item => item.name?.toLocaleLowerCase().includes(value) || item.id?.toString().includes(value))
|
||||
.sort(function (a, b) {
|
||||
return a.id - b.id;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue