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

Merge pull request #610 from YouKnowBlom/library-path-fix

Fix existing library folder path returning undefined
This commit is contained in:
dkanada 2019-12-04 00:12:05 +09:00 committed by GitHub
commit 50ca98b2a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,9 +223,9 @@ define(['loading', 'dialogHelper', 'dom', 'listViewStyle', 'emby-input', 'paper-
function getDefaultPath(options) { function getDefaultPath(options) {
if (options.path) { if (options.path) {
Promise.resolve(options.path); return Promise.resolve(options.path);
} else { } else {
ApiClient.getJSON(ApiClient.getUrl("Environment/DefaultDirectoryBrowser")).then( return ApiClient.getJSON(ApiClient.getUrl("Environment/DefaultDirectoryBrowser")).then(
function(result) { function(result) {
return result.Path || ""; return result.Path || "";
}, function() { }, function() {