From cbac155875bb4cf07bb90f2ccb7b90eff357cab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kimjh=28=EA=B9=80=EC=9E=A5=ED=98=84=29?= Date: Mon, 14 Nov 2022 13:53:36 +0900 Subject: [PATCH] =?UTF-8?q?=EB=93=9C=EB=A1=A0=20=EA=B4=80=EC=A0=9C=20->=20?= =?UTF-8?q?=EB=93=9C=EB=A1=A0=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=ED=81=B4?= =?UTF-8?q?=EB=A6=AD=EC=8B=9C=20=EB=B9=84=ED=96=89=EA=B3=84=ED=9A=8D?= =?UTF-8?q?=EC=84=9C=20=EA=B2=BD=EB=A1=9C=20=EB=AF=B8=EB=85=B8=EC=B6=9C=20?= =?UTF-8?q?=EC=9D=B4=EC=8A=88=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/control/report/ControlReportList.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/views/control/report/ControlReportList.js b/src/views/control/report/ControlReportList.js index d485126..ffbe173 100644 --- a/src/views/control/report/ControlReportList.js +++ b/src/views/control/report/ControlReportList.js @@ -1,11 +1,11 @@ import moment from 'moment'; -import React, { useEffect, useState } from 'react'; +import { useState } from 'react'; import { Search, X } from 'react-feather'; import { useDispatch, useSelector } from 'react-redux'; import { Badge, Button, Input, InputGroup } from 'reactstrap'; import { controlGpDtlAction, - controlGpLogAction + controlGpFlightPlanAction } from '../../../modules/control/gp'; import { objectClickAction } from '../../../modules/control/map/actions/controlMapActions'; @@ -15,9 +15,10 @@ const ControlReportList = props => { const dispatch = useDispatch(); - const handlerDetail = (objectId, cntrlId) => { - dispatch(objectClickAction(cntrlId)); - dispatch(controlGpDtlAction.request(cntrlId)); + const handlerDetail = item => { + dispatch(objectClickAction(item.controlId)); + dispatch(controlGpDtlAction.request(item.controlId)); + dispatch(controlGpFlightPlanAction.request(item.objectId)); }; // useEffect(() => {}, [filterId]); @@ -62,7 +63,7 @@ const ControlReportList = props => { return (
handlerDetail(item.objectId, item.controlId)} + onClick={() => handlerDetail(item)} key={item.objectId} >