corregir recursion infinita en safeInvoke + status.toLowerCase con booleans

This commit is contained in:
2026-05-27 20:29:30 -05:00
parent f6268bbdf1
commit 9898d4a414
2 changed files with 10 additions and 5 deletions
+4 -3
View File
@@ -20,9 +20,10 @@ export const useWorkItemsStore = defineStore('workitems', () => {
const totalHUs = computed(() => userStories.value.length)
const totalEpics = computed(() => epics.value.length)
const inProgressHUs = computed(() =>
userStories.value.filter(hu =>
hu.status && ['in_progress', 'doing', 'wip', 'active', 'in progress'].includes(hu.status.toLowerCase())
).length
userStories.value.filter(hu => {
const s = String(hu.status ?? '').toLowerCase()
return ['in_progress', 'doing', 'wip', 'active', 'in progress', 'true'].includes(s)
}).length
)
const totalSessions = computed(() => logbooks.value.length)