Skip to content

Commit

Permalink
Add unique keys to modifier controls
Browse files Browse the repository at this point in the history
- Added a unique `key` prop to `FormControlLabel` in `Modifiers.js` to improve React rendering performance and prevent key warning errors.
  • Loading branch information
obra committed Mar 18, 2024
1 parent 2462154 commit a311db2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/screens/Editor/Sidebar/Modifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const Modifiers = (props) => {
const modifier = modifiers[mod];
return (
<FormControlLabel
key={modifier.code}
control={
<Switch
size="small"
Expand Down

0 comments on commit a311db2

Please sign in to comment.