fix(admin-pwa): fix location saving and dashboard refresh delay
This commit is contained in:
@@ -50,6 +50,7 @@ class EventStoreRequest extends FormRequest
|
|||||||
'features' => ['nullable', 'array'],
|
'features' => ['nullable', 'array'],
|
||||||
'features.*' => ['string'],
|
'features.*' => ['string'],
|
||||||
'settings' => ['nullable', 'array'],
|
'settings' => ['nullable', 'array'],
|
||||||
|
'settings.location' => ['nullable', 'string', 'max:255'],
|
||||||
'settings.branding' => ['nullable', 'array'],
|
'settings.branding' => ['nullable', 'array'],
|
||||||
'settings.branding.*' => ['nullable'],
|
'settings.branding.*' => ['nullable'],
|
||||||
'settings.engagement_mode' => ['nullable', Rule::in(['tasks', 'photo_only'])],
|
'settings.engagement_mode' => ['nullable', Rule::in(['tasks', 'photo_only'])],
|
||||||
|
|||||||
@@ -246,6 +246,8 @@ export default function MobileEventFormPage() {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
const nextSlug = resolveEventSlugAfterUpdate(slug, updated);
|
const nextSlug = resolveEventSlugAfterUpdate(slug, updated);
|
||||||
|
await queryClient.invalidateQueries({ queryKey: ['tenant-events'] });
|
||||||
|
void refetch();
|
||||||
navigate(adminPath(`/mobile/events/${nextSlug}`));
|
navigate(adminPath(`/mobile/events/${nextSlug}`));
|
||||||
} else {
|
} else {
|
||||||
const payload = {
|
const payload = {
|
||||||
|
|||||||
Reference in New Issue
Block a user