fix
This commit is contained in:
parent
8b6791b3a2
commit
9f0a3bfc86
@ -30,10 +30,7 @@ const EventGuestListAccessPanel = ({ eventId }: EventGuestListAccessPanelProps)
|
||||
try {
|
||||
setIsLoading(true)
|
||||
setError(null)
|
||||
const [nextLinks, nextInvitedGuests] = await Promise.all([
|
||||
fetchEventGuestListLinks(eventId),
|
||||
fetchEventInvitedGuests(eventId),
|
||||
])
|
||||
const [nextLinks, nextInvitedGuests] = await Promise.all([fetchEventGuestListLinks(eventId), fetchEventInvitedGuests(eventId)])
|
||||
|
||||
if (!cancelled) {
|
||||
setLinks(nextLinks)
|
||||
|
||||
@ -23,12 +23,7 @@ import UnsavedChangesIndicator from '@/components/forms/UnsavedChangesIndicator'
|
||||
import { useEventScheduleConstraints } from '@/components/events/schedule/eventScheduleConstraints'
|
||||
import { isEventSlugLocked, isFieldLocked, resolveEventEditPolicy } from '@/features/events/eventEditPolicy'
|
||||
import { syncEventFaqs, syncEventMedia } from '@/features/events/edit/syncEventExtras'
|
||||
import {
|
||||
fetchEventCategories,
|
||||
fetchEventForEdit,
|
||||
updateEventAsAdmin,
|
||||
type EventCategory,
|
||||
} from '@/services/events'
|
||||
import { fetchEventCategories, fetchEventForEdit, updateEventAsAdmin, type EventCategory } from '@/services/events'
|
||||
import { fetchEventFaqs, fetchEventMedia, type EventFaq, type EventMedia } from '@/services/eventDetail'
|
||||
import { fetchAllCities, type City } from '@/services/geography'
|
||||
import { extractServerErrorDetail } from '@/services/errorHandler'
|
||||
|
||||
@ -7,11 +7,7 @@ import AdminState from '@/components/feedback/AdminState'
|
||||
import ReviewCard from '@/components/reviews/ReviewCard'
|
||||
import StatusChip from '@/components/ui/StatusChip'
|
||||
import { getReviewStatus } from '@/constants/status'
|
||||
import {
|
||||
EVENT_REVIEWS_PAGE_SIZE,
|
||||
LIST_ADMIN_EVENT_REVIEWS_PAGE,
|
||||
type AdminEventReview,
|
||||
} from '@/services/reviews'
|
||||
import { EVENT_REVIEWS_PAGE_SIZE, LIST_ADMIN_EVENT_REVIEWS_PAGE, type AdminEventReview } from '@/services/reviews'
|
||||
import { texts } from '@/texts'
|
||||
|
||||
interface EventReviewsPanelProps {
|
||||
|
||||
@ -11,10 +11,7 @@ import { clearStoredPushSubscriptionId, getStoredPushSubscriptionId, unsubscribe
|
||||
|
||||
const notificationsApi = getNotifications()
|
||||
|
||||
const UNSUBSCRIBE_PUSH = async (
|
||||
subscriptionId: string,
|
||||
options?: ServiceCallOptions
|
||||
): Promise<ServiceResult<{ deleted: boolean }>> => {
|
||||
const UNSUBSCRIBE_PUSH = async (subscriptionId: string, options?: ServiceCallOptions): Promise<ServiceResult<{ deleted: boolean }>> => {
|
||||
try {
|
||||
await notificationsApi.notificationsControllerUnsubscribePush(subscriptionId)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user