fix: show untitle for blank page titles (#4505)

This commit is contained in:
Aaryan Khandelwal 2024-05-17 19:40:12 +05:30 committed by GitHub
parent cbca2c78ee
commit 1178c3b14d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,7 +76,7 @@ export class PageStore implements IPageStore {
page: TPage
) {
this.id = page?.id || undefined;
this.name = page?.name || undefined;
this.name = page?.name?.trim() === "" ? "" : undefined;
this.description_html = page?.description_html || undefined;
this.color = page?.color || undefined;
this.labels = page?.labels || undefined;