Fix modify model UI bug
[clamp.git] / ui-react / src / components / dialogs / Loop / ModifyLoopModal.js
index 7c16b78..42c03da 100644 (file)
@@ -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() {