From e916ac28ba46ff7cad64f1a3150b128ba4772c70 Mon Sep 17 00:00:00 2001 From: sebdet Date: Mon, 16 Mar 2020 11:04:34 -0700 Subject: Rework the policy refresh Rework the policy refresh for the new unique dialog policyModel Issue-ID: CLAMP-578 Signed-off-by: sebdet Change-Id: Ie8c91223e92c1e344d7ead5784ffea33d4f6a00f --- .../src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-react/src/components') diff --git a/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js b/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js index 7ed8ba6f1..89e70795e 100644 --- a/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js +++ b/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js @@ -127,7 +127,7 @@ export default class OperationalPolicyModal extends React.Component { } handleRefresh() { - LoopService.refreshOpPolicyJson(this.state.loopCache.getLoopName()).then(data => { + LoopService.refreshOperationalPolicyJson(this.state.loopCache.getLoopName(), this.state.loopCache.getOperationalPolicies()[0]).then(data => { var newLoopCache = new LoopCache(data); var schema_json = newLoopCache.getOperationalPolicyJsonSchema(); var operationalPoliciesData = newLoopCache.getOperationalPoliciesNoJsonSchema(); -- cgit 1.2.3-korg