From 184251197b4e4d5e1c6d755e68498e30b3c63dc1 Mon Sep 17 00:00:00 2001 From: sanguu516 Date: Tue, 27 Aug 2024 18:30:19 +0900 Subject: [PATCH] =?UTF-8?q?fix/=EC=A0=84=EC=86=A1=EC=83=81=ED=83=9C=20?= =?UTF-8?q?=EB=9E=9C=EB=8D=A4=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/flight/ControlApprovalsTable.js | 2 +- src/components/flight/OperationApprovalsTable.js | 2 +- src/redux/features/laanc/laancThunk.ts | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/flight/ControlApprovalsTable.js b/src/components/flight/ControlApprovalsTable.js index fd8bd63b..107affb1 100644 --- a/src/components/flight/ControlApprovalsTable.js +++ b/src/components/flight/ControlApprovalsTable.js @@ -559,7 +559,7 @@ export default function ControlApprovalsTable(props) { width: '100px', align: 'center', render: planAreaSno => { - return Math.random() < 0.5 ? '전송' : '미전송'; + return '미전송'; } } ]; diff --git a/src/components/flight/OperationApprovalsTable.js b/src/components/flight/OperationApprovalsTable.js index 63c2d524..34eb40ab 100644 --- a/src/components/flight/OperationApprovalsTable.js +++ b/src/components/flight/OperationApprovalsTable.js @@ -540,7 +540,7 @@ export default function OperationApprovalsTable(props) { width: '100px', align: 'center', render: planAreaSno => { - return Math.random() < 0.5 ? '전송' : '미전송'; + return '미전송'; } }, { diff --git a/src/redux/features/laanc/laancThunk.ts b/src/redux/features/laanc/laancThunk.ts index 92f3b26c..94fff12d 100644 --- a/src/redux/features/laanc/laancThunk.ts +++ b/src/redux/features/laanc/laancThunk.ts @@ -290,6 +290,9 @@ export const getLaancAprvList = createAsyncThunk( ...(item.droneList[xIndex]?.weightNm && { weightNm: item.droneList[xIndex].weightNm }), + ...(item.droneList[xIndex]?.benefit && { + benefit: item.droneList[xIndex].benefit + }), purpose: item.purpose, cReviewedType: area.reviewedType }; @@ -301,11 +304,13 @@ export const getLaancAprvList = createAsyncThunk( planAreaSno: item.areaList[0].planAreaSno, cReviewedType: item.reviewedType, areaList: item.areaList.map((area, zIndex) => { - console.log('>>', item?.droneList[zIndex]?.weightNm); return { ...area, applyNm: item.applyNm, purpose: item.purpose, + ...(item.droneList[zIndex]?.benefit && { + benefit: item.droneList[zIndex].benefit + }), ...(item.droneList[zIndex]?.weightNm && { weightNm: item.droneList[zIndex].weightNm }),