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

Update src/components/directorybrowser/directorybrowser.js

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
Niels van Velzen 2022-11-16 18:53:43 +01:00 committed by GitHub
parent e908157692
commit 474d2f9c2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ function refreshDirectoryBrowser(page, path, fileOptions, updatePathOnError) {
Promise.all(promises).then(
responses => {
const folders = responses[0];
const parentPath = responses[1] ? JSON.parse(responses[1]) || '' : '';
const parentPath = (responses[1] ? JSON.parse(responses[1]) : '') || '';
let html = '';
page.querySelector('.results').scrollTop = 0;