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

Kai Reinhard
24.45.2019 4e9c3d97c6c758c8dcb7c3f03dffa77e1a6e8f9e
Fix for changing currentDirectory.
1 files modified
3 ■■■■ changed files
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx 3 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx
@@ -96,8 +96,9 @@
            .then(json => {
                let currentDirectory = this.state.filter.currentDirectory;
                const fileList = json;
                if (fileList && fileList.length > 0) {
                if (fileList && fileList.length > 0 && fileList[0] && fileList[0].path) {
                    currentDirectory = fileList[0].path.replace(fileList[0].displayPath, '');
                    console.log("path=" + fileList[0].path + ", displayPath=" + fileList[0].displayPath + "-> currentDirectory=" + currentDirectory)
                }
                this.setState({
                    isFetching: false,