Browse Source

fix/ 비행승인목록 여러번 불러오는 현상 수정

master
junh_eee(이준희) 2 weeks ago
parent
commit
b1581c29ed
  1. 20
      src/components/flight/ControlApprovalsTable.js
  2. 20
      src/components/flight/OperationApprovalsTable.js

20
src/components/flight/ControlApprovalsTable.js

@ -207,11 +207,11 @@ export default function ControlApprovalsTable(props) {
);
if (updateRes.meta.requestStatus === 'fulfilled') {
props.handlerSearch(
props.filterId,
{ startDate: props.startDate, endDate: props.endDate },
props.filterArea
);
// props.handlerSearch(
// props.filterId,
// { startDate: props.startDate, endDate: props.endDate },
// props.filterArea
// );
setEditingKey('');
} else {
handlerErrorModal(ERROR_TITLE, ERROR_MESSAGE, true);
@ -621,11 +621,11 @@ export default function ControlApprovalsTable(props) {
reviewedProcType: value
})
);
props.handlerSearch(
props.filterId,
{ startDate: props.startDate, endDate: props.endDate },
props.filterArea
);
// props.handlerSearch(
// props.filterId,
// { startDate: props.startDate, endDate: props.endDate },
// props.filterArea
// );
} catch (error) {
return handlerErrorModal(
'검토 실패',

20
src/components/flight/OperationApprovalsTable.js

@ -201,11 +201,11 @@ export default function OperationApprovalsTable(props) {
);
if (updateRes.meta.requestStatus === 'fulfilled') {
props.handlerSearch(
props.filterId,
{ startDate: props.startDate, endDate: props.endDate },
props.filterArea
);
// props.handlerSearch(
// props.filterId,
// { startDate: props.startDate, endDate: props.endDate },
// props.filterArea
// );
setEditingKey('');
} else {
handlerErrorModal(ERROR_TITLE, ERROR_MESSAGE, true);
@ -694,11 +694,11 @@ export default function OperationApprovalsTable(props) {
reviewedType: value
})
);
props.handlerSearch(
props.filterId,
{ startDate: props.startDate, endDate: props.endDate },
props.filterArea
);
// props.handlerSearch(
// props.filterId,
// { startDate: props.startDate, endDate: props.endDate },
// props.filterArea
// );
} catch (error) {
return handlerErrorModal(
'검토 실패',

Loading…
Cancel
Save