Update:Library folder path editable in library edit modal until submit #2150

This commit is contained in:
advplyr 2023-09-27 17:50:32 -05:00
parent d7b2476473
commit ed82a5aa19
2 changed files with 8 additions and 6 deletions

View file

@ -120,7 +120,7 @@ export default {
for (const key in this.libraryCopy) {
if (library[key] !== undefined) {
if (key === 'folders') {
this.libraryCopy.folders = library.folders.map((f) => ({ ...f }))
this.libraryCopy.folders = library.folders.map((f) => ({ ...f })).filter((f) => !!f.fullPath?.trim())
} else if (key === 'settings') {
for (const settingKey in library.settings) {
this.libraryCopy.settings[settingKey] = library.settings[settingKey]