1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #6010 from thornbill/create-library-crash

Fix create library crashing when no path specified
This commit is contained in:
Bill Thornton 2024-09-03 09:51:55 -04:00 committed by GitHub
commit b9760eac75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,6 +25,8 @@ import alert from '../alert';
import template from './mediaLibraryCreator.template.html'; import template from './mediaLibraryCreator.template.html';
function onAddLibrary(e) { function onAddLibrary(e) {
e.preventDefault();
if (isCreating) { if (isCreating) {
return false; return false;
} }
@ -61,7 +63,6 @@ function onAddLibrary(e) {
isCreating = false; isCreating = false;
loading.hide(); loading.hide();
}); });
e.preventDefault();
} }
function getCollectionTypeOptionsHtml(collectionTypeOptions) { function getCollectionTypeOptionsHtml(collectionTypeOptions) {