From 634196cbd66a3d0ac3fc747a07955bcb05cc9050 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sat, 12 Oct 2024 12:17:55 -0400 Subject: [PATCH] Enable ts-strict for dialogStore.ts (#1236) --- src/stores/dialogStore.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stores/dialogStore.ts b/src/stores/dialogStore.ts index 10bb0283a..07e6b91cf 100644 --- a/src/stores/dialogStore.ts +++ b/src/stores/dialogStore.ts @@ -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