mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-13 16:22:32 +10:00
feat: editor file attachments (#194)
* fix current slider value * WIP * changes to extension attributes * update command title
This commit is contained in:
@ -30,7 +30,7 @@ export function getAvatarUrl(avatarUrl: string) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (avatarUrl.startsWith("http")) {
|
||||
if (avatarUrl?.startsWith("http")) {
|
||||
return avatarUrl;
|
||||
}
|
||||
|
||||
@ -42,5 +42,5 @@ export function getSpaceUrl(spaceSlug: string) {
|
||||
}
|
||||
|
||||
export function getFileUrl(src: string) {
|
||||
return src.startsWith("/files/") ? getBackendUrl() + src : src;
|
||||
return src?.startsWith("/files/") ? getBackendUrl() + src : src;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user