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

20
src/components/flight/OperationApprovalsTable.js

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

Loading…
Cancel
Save