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

Fin Reinhard
24.36.2019 b6ccff9ae02b8c6a5bc46344a8bd1b4774a7f4da
fixing double refetch when force step into multiple dirs
1 files modified
6 ■■■■ changed files
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx 6 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx
@@ -42,6 +42,10 @@
    }
    handleURLChange = location => {
        if (location.state && location.state.noReFetch) {
            return;
        }
        // Replacing matched URL(archiveId, repoId) and removing trailing slashes
        this.changeCurrentDirectory(location.pathname.replace(this.props.match.url, '').replace(/^\/|\/$/g, ''));
    };
@@ -108,7 +112,7 @@
                    }
                    if (newUrl !== this.props.location.pathname) {
                        this.props.history.push(newUrl);
                        this.props.history.push(newUrl, {noReFetch: true});
                    }
                }
                this.setState({