Browse Source

fix: page not updating when adding a workflow from marketplace

Ahmad Kholid 3 years ago
parent
commit
e2e1ccf907
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/newtab/pages/workflows/[id].vue

+ 8 - 0
src/newtab/pages/workflows/[id].vue

@@ -746,6 +746,14 @@ watch(
     router.replace({ ...route, query: { tab: value } });
   }
 );
+watch(
+  () => route.params.id,
+  (value, oldValue) => {
+    if (value && oldValue && value !== oldValue) {
+      window.location.reload();
+    }
+  }
+);
 
 /* eslint-disable consistent-return */
 onBeforeRouteLeave(() => {