From 557856185ae14dff1664503f22e5cf5d76bffdbc Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Fri, 1 Nov 2019 10:18:13 +0100 Subject: [PATCH] small fix --- scm-ui/ui-webapp/src/repos/sources/containers/Sources.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scm-ui/ui-webapp/src/repos/sources/containers/Sources.tsx b/scm-ui/ui-webapp/src/repos/sources/containers/Sources.tsx index b5c34b7a21..0a5608e6e5 100644 --- a/scm-ui/ui-webapp/src/repos/sources/containers/Sources.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/containers/Sources.tsx @@ -175,9 +175,9 @@ const mapStateToProps = (state, ownProps) => { const loading = isFetchBranchesPending(state, repository); const error = getFetchBranchesFailure(state, repository); const branches = getBranches(state, repository); - const currentFileIsDirectory = revision + const currentFileIsDirectory = decodedRevision ? isDirectory(state, repository, decodedRevision, path) - : isDirectory(state, repository, decodedRevision, path); + : isDirectory(state, repository, revision, path); const sources = getSources(state, repository, decodedRevision, path); return {