do not pass in shareId in websiteEditForm
Some checks failed
Create docker images (cloud) / Build, push, and deploy (push) Has been cancelled
Node.js CI / build (push) Has been cancelled

This commit is contained in:
Francis Cao 2026-02-09 17:48:28 -08:00
parent fb6fd293fb
commit 078f082721

View file

@ -8,7 +8,8 @@ export function WebsiteEditForm({ websiteId, onSave }: { websiteId: string; onSa
const { mutateAsync, error, touch, toast } = useUpdateQuery(`/websites/${websiteId}`); const { mutateAsync, error, touch, toast } = useUpdateQuery(`/websites/${websiteId}`);
const handleSubmit = async (data: any) => { const handleSubmit = async (data: any) => {
await mutateAsync(data, { const { shareId, ...updateData } = data;
await mutateAsync(updateData, {
onSuccess: async () => { onSuccess: async () => {
toast(formatMessage(messages.saved)); toast(formatMessage(messages.saved));
touch('websites'); touch('websites');