From 9f0ff33f469da711baa64a323c862b81f04c1e50 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Mon, 21 Sep 2020 12:05:07 +0200 Subject: [PATCH] Fix handling of slashes in branches in 'offset loading'-case --- scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx b/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx index 1e92f8cbcf..3d38cfd596 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/components/FileTree.tsx @@ -109,7 +109,12 @@ class FileTree extends React.Component { } loadMore = () => { - this.props.fetchSources(this.props.repository, this.props.revision, this.props.path, this.props.hunks.length); + this.props.fetchSources( + this.props.repository, + decodeURIComponent(this.props.revision), + this.props.path, + this.props.hunks.length + ); }; renderTruncatedInfo = () => {