mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 16:10:09 +00:00
Enable ts-strict for dialogStore.ts (#1236)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// @ts-strict-ignore
|
||||
// We should consider moving to https://primevue.org/dynamicdialog/ once everything is in Vue.
|
||||
// Currently we need to bridge between legacy app code and Vue app with a Pinia store.
|
||||
|
||||
@@ -41,7 +40,7 @@ export const useDialogStore = defineStore('dialog', {
|
||||
}) {
|
||||
this.isVisible = true
|
||||
nextTick(() => {
|
||||
this.title = options.title
|
||||
this.title = options.title ?? ''
|
||||
this.headerComponent = options.headerComponent
|
||||
? markRaw(options.headerComponent)
|
||||
: null
|
||||
|
||||
Reference in New Issue
Block a user