Skip to content

Commit

Permalink
Add flag to only update alt-text when aggregate is None
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWags committed Mar 14, 2024
1 parent 4e599d5 commit 80ae1a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/upset/src/components/AltTextSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ export const AltTextSidebar: FC<Props> = ({ open, close, generateAltText }) => {
setTextDescription(resp);
}

generate();
if (currState.aggregateBy === 'None') {
generate();
}
}, [currState]);

// this useEffect resets the plot information when the edit is toggled off
Expand Down

0 comments on commit 80ae1a2

Please sign in to comment.