mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
24.35.2019 b0fea8bef3cbccde70ec5fb0891349a80a3e7f15
Fix: currentDirectory modification.
1 files modified
4 ■■■ changed files
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx 4 ●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx
@@ -97,7 +97,9 @@
                let currentDirectory = this.state.filter.currentDirectory;
                const fileList = json;
                if (fileList && fileList.length > 0 && fileList[0] && fileList[0].path) {
                    currentDirectory = fileList[0].path.replace(fileList[0].displayPath, '');
                    const path = fileList[0].path;
                    currentDirectory = path.substring(0, path.length - fileList[0].displayPath.length);
                    //console.log(fileList[0].path + ", displayPath=" + fileList[0].displayPath + " -> " + currentDirectory);
                    let newUrl = this.props.match.url;