do not pass in shareId in websiteEditForm
This commit is contained in:
@@ -8,7 +8,8 @@ export function WebsiteEditForm({ websiteId, onSave }: { websiteId: string; onSa
|
||||
const { mutateAsync, error, touch, toast } = useUpdateQuery(`/websites/${websiteId}`);
|
||||
|
||||
const handleSubmit = async (data: any) => {
|
||||
await mutateAsync(data, {
|
||||
const { shareId, ...updateData } = data;
|
||||
await mutateAsync(updateData, {
|
||||
onSuccess: async () => {
|
||||
toast(formatMessage(messages.saved));
|
||||
touch('websites');
|
||||
|
||||
Reference in New Issue
Block a user