Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix broken funnel update

Blue Mouse8d96dfe4bdb4
diff --git a/app/pages/Project/View/ViewProject.tsx b/app/pages/Project/View/ViewProject.tsx
index 02fdc5c26..c65438624 100644
--- a/app/pages/Project/View/ViewProject.tsx
+++ b/app/pages/Project/View/ViewProject.tsx
@@ -476,7 +476,7 @@ const ViewProject = ({
setFunnelActionLoading(true)
try {
- updateFunnel(funnelId, id, name, steps)
+ await updateFunnel(funnelId, id, name, steps)
} catch (reason: any) {
console.error('[ERROR] (onFunnelEdit)(updateFunnel)', reason)
showError(reason)
@@ -485,7 +485,7 @@ const ViewProject = ({
try {
const funnels = await getFunnels(id, projectPassword)
- updateProject(id, {
+ await updateProject(id, {
funnels,
})
} catch (reason: any) {