This commit is contained in:
2024-03-31 07:36:24 +03:00
parent 98a6dee996
commit 6328ac877a
38 changed files with 385 additions and 106 deletions

View File

@@ -26,10 +26,10 @@ export const ServicesPage: FC = () => {
}
const onCreate = (values: ServiceSchema) => {
ServiceService.createService({requestBody: {service: values}})
.then(({ok, message}) => {
.then(async ({ok, message}) => {
notifications.guess(ok, {message: message});
if (!ok) return;
refetch();
await refetch();
})
}
const onCreateCategoryClick = () => {