From 6e14d18fecdadf88c5417937817ce64e089ffcfa Mon Sep 17 00:00:00 2001 From: Seok93 Date: Tue, 24 Dec 2024 20:46:17 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20#310=20=ED=94=84=EB=A1=9C=EC=A0=9D?= =?UTF-8?q?=ED=8A=B8=EC=9B=90=20=EC=B6=94=EB=B0=A9/=ED=83=88=ED=87=B4?= =?UTF-8?q?=EC=8B=9C=20=EC=97=AD=ED=95=A0=EC=9D=84=20null=EB=A1=9C=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mocks/services/taskServiceHandler.ts | 4 +--- src/types/RoleType.tsx | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mocks/services/taskServiceHandler.ts b/src/mocks/services/taskServiceHandler.ts index 2c80788b..b087c3f1 100644 --- a/src/mocks/services/taskServiceHandler.ts +++ b/src/mocks/services/taskServiceHandler.ts @@ -286,10 +286,8 @@ const taskServiceHandler = [ const { userId } = taskUsers[i]; const projectUser = findProjectUser(projectId, userId); - if (!projectUser) return new HttpResponse(null, { status: 403 }); - + const role = projectUser ? findRole(projectUser.roleId) : { roleName: null }; const user = findUser(userId); - const role = findRole(projectUser.roleId); if (!user || !role) return new HttpResponse(null, { status: 404 }); const assignee = { userId: user.userId, nickname: user.nickname, roleName: role.roleName }; diff --git a/src/types/RoleType.tsx b/src/types/RoleType.tsx index f4823f1f..e9d558aa 100644 --- a/src/types/RoleType.tsx +++ b/src/types/RoleType.tsx @@ -12,6 +12,6 @@ export type RoleInfo = { export type Role = { roleId: number; - roleName: RoleName; + roleName: RoleName | null; roleType: 'TEAM' | 'PROJECT'; };