From 65fd60cd782ccb2b04223cc0cb67f6ad324024cb Mon Sep 17 00:00:00 2001 From: Antoine Dewez <44063631+Zewed@users.noreply.github.com> Date: Thu, 22 Feb 2024 11:18:03 -0800 Subject: [PATCH] fix(frontend): don't preselect core brain (#2239) # Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate): --- .../BrainTypeSelectionStep/BrainTypeSelectionStep.tsx | 2 +- .../components/CreateBrainStep/CreateBrainStep.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/lib/components/AddBrainModal/components/BrainTypeSelectionStep/BrainTypeSelectionStep.tsx b/frontend/lib/components/AddBrainModal/components/BrainTypeSelectionStep/BrainTypeSelectionStep.tsx index 48e7da18d..cf2caee92 100644 --- a/frontend/lib/components/AddBrainModal/components/BrainTypeSelectionStep/BrainTypeSelectionStep.tsx +++ b/frontend/lib/components/AddBrainModal/components/BrainTypeSelectionStep/BrainTypeSelectionStep.tsx @@ -13,7 +13,7 @@ import { useBrainCreationContext } from "../../brainCreation-provider"; import { useBrainCreationSteps } from "../../hooks/useBrainCreationSteps"; export const BrainTypeSelectionStep = (): JSX.Element => { - const [selectedIndex, setSelectedIndex] = useState(0); + const [selectedIndex, setSelectedIndex] = useState(-1); const [customBrainsCatalogueOpened, setCustomBrainsCatalogueOpened] = useState(false); const [customBrains, setCustomBrains] = useState([]); diff --git a/frontend/lib/components/AddBrainModal/components/CreateBrainStep/CreateBrainStep.tsx b/frontend/lib/components/AddBrainModal/components/CreateBrainStep/CreateBrainStep.tsx index 04cd7b5c1..ef4af6889 100644 --- a/frontend/lib/components/AddBrainModal/components/CreateBrainStep/CreateBrainStep.tsx +++ b/frontend/lib/components/AddBrainModal/components/CreateBrainStep/CreateBrainStep.tsx @@ -48,7 +48,7 @@ export const CreateBrainStep = (): JSX.Element => { onClick={previous} />