Skip to content

Commit

Permalink
fix(apply): sectorSettingData의 누락을 추가한다(#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
loopy-lim authored Mar 14, 2024
2 parents c28e5c4 + ca81c49 commit b819b99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service-manager/src/components/apply-list/ApplyList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import { Button } from '@quokka/design-system';
import { useAllRegistrationQuery } from '../../hooks/react-query/useRegistration';
import { useState } from 'react';
import { ApplyCount } from './ApplyCount';
import { useSectorQueryById } from '../../hooks/react-query/useSetting';
export const ApplyList = ({ eventId }: { eventId: string }) => {
const { registrations } = useAllRegistrationQuery(eventId);
const sectors = Array.from(
new Set(registrations.map((registration) => registration.sectorNum)),
).sort();
const [selectedSector, setSelectedSector] = useState(sectors[0]);
const { sectorSettingData } = useSectorQueryById(eventId);

const exportXLSX = async () => {
const data = sectorSettingData
Expand Down

0 comments on commit b819b99

Please sign in to comment.