From 6b2a8f41e5268638943345e28414c7934c8e1245 Mon Sep 17 00:00:00 2001 From: clegirar Date: Thu, 29 Oct 2020 19:37:41 +0100 Subject: [PATCH] fix: last build default collapse as true Signed-off-by: clegirar --- web/src/ui/components/Build/BuildContainer.js | 4 ++-- web/src/ui/components/BuildList.js | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web/src/ui/components/Build/BuildContainer.js b/web/src/ui/components/Build/BuildContainer.js index daf566f0..c65ab2c6 100644 --- a/web/src/ui/components/Build/BuildContainer.js +++ b/web/src/ui/components/Build/BuildContainer.js @@ -181,9 +181,9 @@ const LatestBuildStateTags = ({ }; const BuildContainer = React.memo( - ({ build, toCollapse, hasRunningBuilds, isLatestMaster = false }) => { + ({ build, hasRunningBuilds, isLatestMaster = false }) => { const { state } = useContext(GlobalContext); - const [collapsed, setCollapsed] = useState(toCollapse); + const [collapsed, setCollapsed] = useState(true); const [showingAllBuilds, toggleShowingAllBuilds] = useState(false); const { theme } = useContext(ThemeContext); diff --git a/web/src/ui/components/BuildList.js b/web/src/ui/components/BuildList.js index 178bca95..02e7ccf8 100644 --- a/web/src/ui/components/BuildList.js +++ b/web/src/ui/components/BuildList.js @@ -59,7 +59,6 @@ const Feed = ({ {!indexOfLatestMasterBuildsForProjects.includes(i) && ( 0} hasRunningBuilds={buildsStateIsRunning( build.allBuildsForMr, builds, @@ -194,7 +193,6 @@ const BuildList = ({ builds = [], loaded }) => {