Skip to content

Commit 634196c

Browse files
authored
Enable ts-strict for dialogStore.ts (#1236)
1 parent 5611e90 commit 634196c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/stores/dialogStore.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-strict-ignore
21
// We should consider moving to https://primevue.org/dynamicdialog/ once everything is in Vue.
32
// Currently we need to bridge between legacy app code and Vue app with a Pinia store.
43

@@ -41,7 +40,7 @@ export const useDialogStore = defineStore('dialog', {
4140
}) {
4241
this.isVisible = true
4342
nextTick(() => {
44-
this.title = options.title
43+
this.title = options.title ?? ''
4544
this.headerComponent = options.headerComponent
4645
? markRaw(options.headerComponent)
4746
: null

0 commit comments

Comments
 (0)