Browse Source

fix(nc-gui): formatTitle type

pull/4574/head
Wing-Kam Wong 2 years ago
parent
commit
ac3e876a99
  1. 4
      packages/nc-gui/pages/projects/index/index.vue

4
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('')

Loading…
Cancel
Save