From ac3e876a999a160e656ad3875f6ce17b50ebbedb Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 3 Dec 2022 13:52:35 +0800 Subject: [PATCH] fix(nc-gui): formatTitle type --- packages/nc-gui/pages/projects/index/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/pages/projects/index/index.vue b/packages/nc-gui/pages/projects/index/index.vue index f48927a4d1..22870ff48d 100644 --- a/packages/nc-gui/pages/projects/index/index.vue +++ b/packages/nc-gui/pages/projects/index/index.vue @@ -24,9 +24,9 @@ const openProject = async (project: ProjectType) => { $e('a:project:open', { count: projects.length }) } -const formatTitle = (title: '') => +const formatTitle = (title?: string) => title - .split(' ') + ?.split(' ') .map((w) => w[0]) .slice(0, 2) .join('')