iipbs_cs #16

Merged
chanii8 merged 44 commits from iipbs_cs into main 2025-04-30 17:09:18 +09:00
2 changed files with 10 additions and 2 deletions
Showing only changes of commit aa8edc71c7 - Show all commits
@@ -100,7 +100,9 @@ function AdditionalUserDialog({
취소
</Button>
</DialogClose>
<Button onClick={handleAddUsers}>추가</Button>
<DialogClose asChild>
<Button onClick={handleAddUsers}>추가</Button>
</DialogClose>
</DialogFooter>
</DialogContent>
</Dialog>
@@ -98,7 +98,13 @@ function UserOrganizationSection({ ognzSn }: UserOrganizationSectionProps) {
jbgdSeCd: "",
sortSeq: 0,
}));
setUserList([...newUserList, ...userList]);
const filteredUserList = userList.filter(
(existingUser) =>
!newUserList.some(
(newUser) => newUser.userUnqId === existingUser.userUnqId,
),
);
setUserList([...newUserList, ...filteredUserList]);
};
const handleToggleSelectUser = useCallback((user: User) => {