aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2021-04-26 13:10:55 +0200
committersebdet <sebastien.determe@intl.att.com>2021-04-26 13:11:34 +0200
commit48a2a182fe73768af38774df3596719ed2b087a1 (patch)
treed0f18cc1c731f654bd42ce25a7803585e56f7d30 /ui-react/src/components
parent6128857eaa9c6b54bf95cca5f1d6dd2a7bfa1413 (diff)
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 <sebastien.determe@intl.att.com>
Diffstat (limited to 'ui-react/src/components')
-rw-r--r--ui-react/src/components/dialogs/Policy/PolicyToscaFileSelector.js3
1 files changed, 2 insertions, 1 deletions
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,(<Alert variant="success"><Alert.Heading>{file.name}</Alert.Heading><p>Policy Tosca Model Created Successfully</p><hr/><p>Type: {file.type}</p><p>Size: {file.size}</p></Alert>)]
@@ -88,7 +89,7 @@ export default class PolicyToscaFileSelector extends React.Component {
});
};
});
- this.props.toscaTableUpdateFunction();
+
}
render() {