Skip to content

Commit

Permalink
feat: focuis when analysis is created (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoalee authored Feb 27, 2024
1 parent c3ab293 commit fa7650d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const EditAnalyses: React.FC = React.memo((props) => {
if (!createdAnalysis.id) return;

createAnnotationNote(createdAnalysis.id, studyId, '');
setSelectedAnalysisId(createdAnalysis.id);
};

const handleSelectAnalysis = useCallback((analysisId: string) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const EditAnalysesListItem: React.FC<{
return (
<ListItem disablePadding divider>
<ListItemButton
autoFocus={selected}
sx={{ minHeight: '49px' }}
onClick={handleSelectAnalysis}
selected={selected}
Expand Down

0 comments on commit fa7650d

Please sign in to comment.