fix(admin-pwa): fix location saving and dashboard refresh delay
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-18 11:14:42 +01:00
parent 4219daba25
commit f1f552ad2d
2 changed files with 3 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ class EventStoreRequest extends FormRequest
'features' => ['nullable', 'array'],
'features.*' => ['string'],
'settings' => ['nullable', 'array'],
'settings.location' => ['nullable', 'string', 'max:255'],
'settings.branding' => ['nullable', 'array'],
'settings.branding.*' => ['nullable'],
'settings.engagement_mode' => ['nullable', Rule::in(['tasks', 'photo_only'])],

View File

@@ -246,6 +246,8 @@ export default function MobileEventFormPage() {
},
});
const nextSlug = resolveEventSlugAfterUpdate(slug, updated);
await queryClient.invalidateQueries({ queryKey: ['tenant-events'] });
void refetch();
navigate(adminPath(`/mobile/events/${nextSlug}`));
} else {
const payload = {