Skip to content

Commit

Permalink
Merge pull request #395 from visdesignlab/353-alttext-optimization
Browse files Browse the repository at this point in the history
Only generate alttext if sidebar is open
  • Loading branch information
NateLanza authored Sep 27, 2024
2 parents a6deab8 + af1f8a7 commit 9d1fca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/upset/src/components/AltTextSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const AltTextSidebar: FC<Props> = ({ open, close, generateAltText }) => {
}
}

generate();
if (open) generate();
}, [currState]);

/**
Expand Down

0 comments on commit 9d1fca8

Please sign in to comment.