From d5778538a022a7ccfd9b69faeaa47bb3127cce4e Mon Sep 17 00:00:00 2001 From: Narfinger Date: Mon, 19 Aug 2024 15:35:45 +0900 Subject: [PATCH] Incorporate suggestion in mediaLibraryEditor.js Co-authored-by: Bill Thornton --- src/components/mediaLibraryEditor/mediaLibraryEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/mediaLibraryEditor/mediaLibraryEditor.js b/src/components/mediaLibraryEditor/mediaLibraryEditor.js index a8ddfc3caa..d7c819e172 100644 --- a/src/components/mediaLibraryEditor/mediaLibraryEditor.js +++ b/src/components/mediaLibraryEditor/mediaLibraryEditor.js @@ -33,7 +33,7 @@ function onEditLibrary() { const dlg = dom.parentWithClass(this, 'dlg-libraryeditor'); // when the library has moved or symlinked, the ItemId is not correct anymore // this can lead to a forever spinning value on edit the library parameters - if (currentOptions.library.ItemId == undefined) { + if (!currentOptions.library.ItemId) { loading.hide(); dialogHelper.close(dlg); alert({