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

(cherry picked from commit 50ca98b2a2)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
This commit is contained in:
dkanada 2019-12-04 00:12:05 +09:00 committed by Joshua Boniface
parent 8ac155fb7a
commit bdf8553728

View file

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