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

This commit is contained in:
advplyr committed 2023-09-27 17:50:32 -05:00
1 parent d7b2476473
commit ed82a5aa19
2 files changed
+8 -6

No files matched your search

@@ -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]