Skip to content

Commit

Permalink
Allow removing map metrics.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 84d17a78ac4e16ad65d7cb0505194d131387bc17
  • Loading branch information
cpojer committed Oct 30, 2024
1 parent 8d68913 commit 1042e84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hera/editor/panels/MapEditorSettingsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function MapEditorSettingsPanel({
config: config.copy({
performance: {
...performance,
[metric]: value,
[metric]: value === 0 ? undefined : value,
},
}),
}),
Expand All @@ -116,7 +116,7 @@ export default function MapEditorSettingsPanel({
config: config.copy({
performance: {
...performance,
style,
style: style?.[1] === 0 ? null : style,
},
}),
}),
Expand Down Expand Up @@ -291,7 +291,7 @@ export default function MapEditorSettingsPanel({
<InlineLink
key={type}
onClick={() =>
setStyle([type, performance.style?.[1] || 0])
setStyle([type, performance.style?.[1] || 1])
}
selectedText={type === performance.style?.[0]}
>
Expand Down

0 comments on commit 1042e84

Please sign in to comment.