From: xuegao Date: Wed, 18 Mar 2020 11:55:22 +0000 (+0100) Subject: Fix modify model UI bug X-Git-Tag: 5.0.0~13 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=clamp.git;a=commitdiff_plain;h=a2625fe6c6819fc41a6f4f5a9625cd9ba753bc72 Fix modify model UI bug Fix the modify model UI bug, update the loopCache before closing the window. Issue-ID: CLAMP-783 Change-Id: Ide103f66b103ca2f51e8b7bbeda883db6626d027 Signed-off-by: xuegao --- diff --git a/ui-react/src/components/dialogs/Loop/ModifyLoopModal.js b/ui-react/src/components/dialogs/Loop/ModifyLoopModal.js index 7c16b786..42c03dac 100644 --- a/ui-react/src/components/dialogs/Loop/ModifyLoopModal.js +++ b/ui-react/src/components/dialogs/Loop/ModifyLoopModal.js @@ -162,14 +162,14 @@ export default class ModifyLoopModal extends React.Component { handleAdd() { LoopService.addOperationalPolicyType(this.state.loopCache.getLoopName(),this.state.selectedRowData.policyModelType,this.state.selectedRowData.version); - this.handleClose(); this.props.loadLoopFunction(this.state.loopCache.getLoopName()); + this.handleClose(); } handleRemove() { LoopService.removeOperationalPolicyType(this.state.loopCache.getLoopName(),this.state.selectedRowData.policyModelType,this.state.selectedRowData.version); - this.handleClose(); this.props.loadLoopFunction(this.state.loopCache.getLoopName()); + this.handleClose(); } render() {