Skip to content

Commit

Permalink
fix: 학생 태그 refetch
Browse files Browse the repository at this point in the history
  • Loading branch information
JJIIIINN committed Jul 12, 2023
1 parent 8a1ceeb commit d47a247
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion services/admin/src/components/main/StudentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export function StudentList({
{modalState.selectedModal === 'GIVE_TAG_OPTIONS' && (
<GiveAllTagModal
selectedStudentId={selectedStudentId}
refetchAllTags={refetchAllTags}
refetchSearchStudents={refetchSearchStudents}
allTags={allTags}
selectedTag={selectedTag}
setSelectedTag={setSelectedTag}
Expand Down
6 changes: 3 additions & 3 deletions services/admin/src/components/modals/GiveAllTagModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { useModal } from '@/hooks/useModal';
interface PropsType {
selectedStudentId: string[];
allTags: TagListResponse;
refetchAllTags: () => void;
refetchSearchStudents: () => void;
selectedTag: string;
setSelectedTag: Dispatch<SetStateAction<string>>;
setTagModal: Dispatch<SetStateAction<string>>;
Expand All @@ -38,7 +38,7 @@ interface Colors {

export function GiveAllTagModal({
allTags,
refetchAllTags,
refetchSearchStudents,
selectedTag,
setSelectedTag,
setTagModal,
Expand Down Expand Up @@ -98,7 +98,7 @@ export function GiveAllTagModal({

const addTagAPI = useAddTag(addTag.addTagName, selectedColor, {
onSuccess: () => {
refetchAllTags();
refetchSearchStudents();
setselectedColor('');
setAddTag({ addTagName: '' });
setNewItem(true);
Expand Down

0 comments on commit d47a247

Please sign in to comment.