fix: resolve typescript and build errors across admin and guest apps
This commit is contained in:
@@ -13,7 +13,7 @@ import { createEvent, getEvent, updateEvent, getEventTypes, TenantEvent, TenantE
|
||||
import { resolveEventSlugAfterUpdate } from './eventFormNavigation';
|
||||
import { adminPath } from '../constants';
|
||||
import { isAuthError } from '../auth/tokens';
|
||||
import { getApiValidationMessage, isApiError } from '../lib/apiError';
|
||||
import { getApiErrorMessage, getApiValidationMessage, isApiError } from '../lib/apiError';
|
||||
import toast from 'react-hot-toast';
|
||||
import { useBackNavigation } from './hooks/useBackNavigation';
|
||||
import { useAdminTheme } from './theme';
|
||||
@@ -130,7 +130,7 @@ export default function MobileEventFormPage() {
|
||||
slug: `${Date.now()}`,
|
||||
event_type_id: form.eventTypeId ?? undefined,
|
||||
event_date: form.date || undefined,
|
||||
status: (form.published ? 'published' : 'draft') as const,
|
||||
status: form.published ? 'published' : 'draft',
|
||||
settings: {
|
||||
location: form.location,
|
||||
guest_upload_visibility: form.autoApproveUploads ? 'immediate' : 'review',
|
||||
@@ -152,7 +152,7 @@ export default function MobileEventFormPage() {
|
||||
slug: `${Date.now()}`,
|
||||
event_type_id: form.eventTypeId ?? undefined,
|
||||
event_date: form.date || undefined,
|
||||
status: (form.published ? 'published' : 'draft') as const,
|
||||
status: form.published ? 'published' : 'draft',
|
||||
settings: {
|
||||
location: form.location,
|
||||
guest_upload_visibility: form.autoApproveUploads ? 'immediate' : 'review',
|
||||
|
||||
Reference in New Issue
Block a user