From 48895c8d2d91ed8626ffba47769dc33c3cf6dbf3 Mon Sep 17 00:00:00 2001 From: nickofolas Date: Sat, 9 Apr 2022 08:41:03 -0500 Subject: [PATCH] Fix SF list selection --- src/Augmentation/ui/SourceFiles.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Augmentation/ui/SourceFiles.tsx b/src/Augmentation/ui/SourceFiles.tsx index 53c9e9102..f649d3890 100644 --- a/src/Augmentation/ui/SourceFiles.tsx +++ b/src/Augmentation/ui/SourceFiles.tsx @@ -111,7 +111,12 @@ export function SourceFilesElement(): React.ReactElement { const maxLevel = getMaxLevel(sfObj); return ( - setSelectedSf(e)} selected={selectedSf === e} sx={{ py: 0 }}> + setSelectedSf(e)} + selected={selectedSf.n === e.n} + sx={{ py: 0 }} + > {sfObj.name}}