diff --git a/src/components/MediaSettings/VideoBackgroundEditor.vue b/src/components/MediaSettings/VideoBackgroundEditor.vue index 0b358ef4ebb..aa217716294 100644 --- a/src/components/MediaSettings/VideoBackgroundEditor.vue +++ b/src/components/MediaSettings/VideoBackgroundEditor.vue @@ -174,22 +174,22 @@ export default { const relativeBackgroundsFolderPath = this.$store.getters.getAttachmentFolder() + '/Backgrounds' const absoluteBackgroundsFolderPath = userRoot + relativeBackgroundsFolderPath - // Create the backgrounds folder if it doesn't exist - if (await client.exists(absoluteBackgroundsFolderPath) === false) { - try { + try { + // Create the backgrounds folder if it doesn't exist + if (await client.exists(absoluteBackgroundsFolderPath) === false) { await client.createDirectory(absoluteBackgroundsFolderPath) - - // Create picker - picker = getFilePickerBuilder(t('spreed', 'File to share')) - .setMultiSelect(false) - .setModal(true) - .startAt(relativeBackgroundsFolderPath) - .setType(1) - .allowDirectories(false) - .build() - } catch (error) { - console.debug(error) } + + // Create picker + picker = getFilePickerBuilder(t('spreed', 'File to share')) + .setMultiSelect(false) + .setModal(true) + .startAt(relativeBackgroundsFolderPath) + .setType(1) + .allowDirectories(false) + .build() + } catch (error) { + console.debug(error) } },