Pārlūkot izejas kodu

fix: can't read length of undefined

Ahmad Kholid 2 gadi atpakaļ
vecāks
revīzija
e2671a319e

+ 1 - 1
src/components/newtab/workflows/WorkflowsUserTeam.vue

@@ -16,7 +16,7 @@
       Browse workflows that been shared by your team
     </p>
     <ui-button
-      :href="`http://localhost:3002/workflows?teamId=${teamId}&workflowsBy=team`"
+      :href="`http://www.automa.site/workflows?teamId=${teamId}&workflowsBy=team`"
       tag="a"
       target="_blank"
       variant="accent"

+ 1 - 1
src/newtab/pages/Workflows.vue

@@ -50,7 +50,7 @@
             </span>
           </ui-list-item>
           <ui-expand
-            v-if="userStore.user?.teams.length > 0"
+            v-if="userStore.user?.teams?.length > 0"
             append-icon
             header-class="px-4 py-2 rounded-lg mb-1 hoverable w-full flex items-center"
           >