Skip to content

Commit

Permalink
Fix react warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreSi committed Sep 16, 2024
1 parent 1ff5813 commit 4e4af17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions newIDE/app/src/CompactPropertiesEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ const CompactPropertiesEditor = ({
compactSelectField = (
<CompactSelectField
value={getFieldValue({ instances, field })}
key={field.name}
id={field.name}
onChange={(newValue: string) => {
instances.forEach(i => setValue(i, parseFloat(newValue) || 0));
Expand All @@ -640,6 +641,7 @@ const CompactPropertiesEditor = ({
field,
defaultValue: '(Multiple values)',
})}
key={field.name}
id={field.name}
onChange={(newValue: string) => {
instances.forEach(i => setValue(i, newValue || ''));
Expand Down

0 comments on commit 4e4af17

Please sign in to comment.