From ddd051e18a417b9840843ecbfd682fc282ff9671 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Fri, 11 Mar 2022 20:15:22 +0100 Subject: [PATCH] fix(ui) - funnels request --- .../components/Funnels/FunnelHeader/FunnelHeader.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/app/components/Funnels/FunnelHeader/FunnelHeader.js b/frontend/app/components/Funnels/FunnelHeader/FunnelHeader.js index a94845294..7f59f2d28 100644 --- a/frontend/app/components/Funnels/FunnelHeader/FunnelHeader.js +++ b/frontend/app/components/Funnels/FunnelHeader/FunnelHeader.js @@ -23,11 +23,12 @@ const FunnelHeader = (props) => { const [showSaveModal, setShowSaveModal] = useState(false) const writeOption = (e, { name, value }) => { - props.fetch(value) - props.fetchInsights(value, {}) - props.fetchIssuesFiltered(value, {}) - props.fetchSessionsFiltered(value, {}) - props.redirect(value) + props.fetch(value).then(() => { + props.fetchInsights(value, {}) + props.fetchIssuesFiltered(value, {}) + props.fetchSessionsFiltered(value, {}) + props.redirect(value) + }) } const deleteFunnel = async (e, funnel) => {