mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Update frontend/src/components/categories/CategoryForm.tsx
This commit is contained in:
@@ -34,10 +34,10 @@ export const CategoryForm: FC<ComponentFormProps<ICategory>> = ({
|
||||
rest.onError?.();
|
||||
toast.error(error || t("message.internal_server_error"));
|
||||
},
|
||||
onSuccess: (response: ICategory) => {
|
||||
onSuccess: (category: ICategory) => {
|
||||
rest.onSuccess?.();
|
||||
toast.success(t("message.success_save"));
|
||||
router.push(`/${RouterType.VISUAL_EDITOR}/flows/${response.id}`);
|
||||
router.push(`/${RouterType.VISUAL_EDITOR}/flows/${category.id}`);
|
||||
},
|
||||
};
|
||||
const { mutate: createCategory } = useCreate(EntityType.CATEGORY, options);
|
||||
|
||||
Reference in New Issue
Block a user