mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
do not pass in shareId in websiteEditForm
This commit is contained in:
parent
fb6fd293fb
commit
078f082721
1 changed files with 2 additions and 1 deletions
|
|
@ -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');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue