mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 19:45:35 +01:00
Update src/app/(main)/settings/websites/WebsiteAddForm.tsx
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
7af402e858
commit
775148592a
1 changed files with 3 additions and 3 deletions
|
|
@ -27,9 +27,9 @@ export function WebsiteAddForm({
|
|||
const { mutate, error, isPending } = useMutation({
|
||||
mutationFn: (data: any) => post('/websites', { ...data, teamId }),
|
||||
onSuccess: data => {
|
||||
saveDashboard({
|
||||
websiteActive: [...websiteActive, data.id],
|
||||
});
|
||||
saveDashboard(prev => ({
|
||||
websiteActive: [...(prev.websiteActive || []), data.id],
|
||||
}));
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue