Merge pull request #4685 from hurani/backport-directory-viewer-parent-fix

This commit is contained in:
Bill Thornton
2023-06-12 16:39:52 -04:00
committed by GitHub

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] || '';
const parentPath = (responses[1] ? JSON.parse(responses[1]) : '') || '';
let html = '';
page.querySelector('.results').scrollTop = 0;