mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 05:00:03 +00:00
Enable ts-strict for workflowStore (#1332)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user