From 48a2a182fe73768af38774df3596719ed2b087a1 Mon Sep 17 00:00:00 2001 From: sebdet Date: Mon, 26 Apr 2021 13:10:55 +0200 Subject: Fix not refreshed Tosca list The refresh must be don inside the asynchronous block to fix the refreshing of the tosca list Issue-ID: POLICY-3229 Change-Id: I89d4964b68d88e28bd8d0dfef19c2382d52fa7bf Signed-off-by: sebdet --- ui-react/src/components/dialogs/Policy/PolicyToscaFileSelector.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui-react/src/components/dialogs') diff --git a/ui-react/src/components/dialogs/Policy/PolicyToscaFileSelector.js b/ui-react/src/components/dialogs/Policy/PolicyToscaFileSelector.js index 8753c7834..9cd3d4172 100644 --- a/ui-react/src/components/dialogs/Policy/PolicyToscaFileSelector.js +++ b/ui-react/src/components/dialogs/Policy/PolicyToscaFileSelector.js @@ -79,6 +79,7 @@ export default class PolicyToscaFileSelector extends React.Component { }; }); } else { + this.props.toscaTableUpdateFunction(); this.setState(state => { return { alertMessages: [...state.alertMessages,({file.name}

Policy Tosca Model Created Successfully


Type: {file.type}

Size: {file.size}

)] @@ -88,7 +89,7 @@ export default class PolicyToscaFileSelector extends React.Component { }); }; }); - this.props.toscaTableUpdateFunction(); + } render() { -- cgit 1.2.3-korg