feat: service deleting and rest categories placeholders
This commit is contained in:
@@ -16,7 +16,7 @@ type RestProps = {
|
||||
};
|
||||
type Props = Omit<ObjectSelectProps<ServiceSchema>, "data"> & RestProps;
|
||||
const ServiceSelectNew: FC<Props> = (props: Props) => {
|
||||
const { services } = useServicesList();
|
||||
const { services } = useServicesList({ withPlaceholders: false });
|
||||
const data = props.filterType
|
||||
? services.filter(service => service.serviceType === props.filterType)
|
||||
: services;
|
||||
@@ -28,10 +28,10 @@ const ServiceSelectNew: FC<Props> = (props: Props) => {
|
||||
return {
|
||||
...option,
|
||||
items: option.items.filter((item: ComboboxItem) =>
|
||||
item.label.toLowerCase().includes(search.toLowerCase())
|
||||
item.label.toLowerCase().includes(search.toLowerCase()),
|
||||
),
|
||||
};
|
||||
}
|
||||
},
|
||||
);
|
||||
};
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user