feat: editor file attachments (#194)

* fix current slider value

* WIP

* changes to extension attributes

* update command title
This commit is contained in:
Philip Okugbe
2024-08-26 12:38:47 +01:00
committed by GitHub
parent 7e80797e3f
commit 7dc37b933f
19 changed files with 450 additions and 16 deletions

View File

@ -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;
}