Enable ts-strict for workflowStore (#1332)

This commit is contained in:
Chenlei Hu
2024-10-27 09:59:17 -04:00
committed by GitHub
parent fa9d944b32
commit 8861492655

View File

@@ -1,4 +1,3 @@
// @ts-strict-ignore
import { defineStore } from 'pinia'
import { computed, ref } from 'vue'
import { ComfyWorkflow } from '@/scripts/workflows'
@@ -33,7 +32,7 @@ export const useWorkflowStore = defineStore('workflow', () => {
// Bookmarked workflows tree is flat.
const bookmarkedWorkflowsTree = computed(() =>
buildTree(bookmarkedWorkflows.value, (workflow: ComfyWorkflow) => [
workflow.path
workflow.path ?? 'temporary_workflow'
])
)
// Open workflows tree is flat.