From 3d026c072e1b407977a6fcf4629d28ffb4df4092 Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Thu, 2 Apr 2020 11:06:43 +0200 Subject: [PATCH] WBProcessDashboard now fetches data when parentProcessUuid changes. --- frontend/src/js/component/wb-process-dashboard.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/js/component/wb-process-dashboard.js b/frontend/src/js/component/wb-process-dashboard.js index abdf85b..1b83390 100644 --- a/frontend/src/js/component/wb-process-dashboard.js +++ b/frontend/src/js/component/wb-process-dashboard.js @@ -119,10 +119,13 @@ class WBProcessDashboard extends Component { this.fetchData(); } - /* componentWillReceiveProps(nextProps) { + componentWillReceiveProps(nextProps) { + if (nextProps.parentProcessUuid === this.props.parentProcessUuid) + return; + this.props = nextProps; - fetchData(); - } */ + this.fetchData(); + } render({}, { rows }) { return (