Fix logo upload and show current logo
This commit is contained in:
parent
6a92e7304b
commit
d00a412889
|
@ -25,7 +25,9 @@
|
|||
}
|
||||
|
||||
let loading = false
|
||||
let file
|
||||
let file = $organisation.logoUrl
|
||||
? { url: $organisation.logoUrl, type: "image", name: "Logo" }
|
||||
: null
|
||||
|
||||
async function uploadLogo() {
|
||||
let data = new FormData()
|
||||
|
@ -40,6 +42,7 @@
|
|||
await toggleAnalytics()
|
||||
if (file) {
|
||||
await uploadLogo()
|
||||
await organisation.init()
|
||||
}
|
||||
const res = await organisation.save({
|
||||
company: $organisation.company,
|
||||
|
|
Loading…
Reference in New Issue