Skip to content

Commit

Permalink
server: c97d90b6b899 (server/migrations: change filname to text from …
Browse files Browse the repository at this point in the history
…varchar(255), 2022-02-23)
  • Loading branch information
aalemayhu committed Feb 23, 2022
1 parent 3bc4e42 commit e6f92a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server
7 changes: 5 additions & 2 deletions web/src/lib/Backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,17 @@ class Backend {
}
private __getObjectIcon(p: any): string {
if (!p || !p.icon) {
return "📄";
return "";
}
const iconType = p.icon.type;
if (iconType === "emoji") return p.icon.emoji as string;
if (iconType === "external") {
return p.icon.external.url;
}
return "📄";
if (iconType === "file") {
return p.icon.file.url;
}
return "";
}

async getPage(pageId: string): Promise<NotionObject | null> {
Expand Down

0 comments on commit e6f92a6

Please sign in to comment.