Skip to content

Commit

Permalink
docs: remove code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-schneider-mw committed Jan 23, 2025
1 parent 4a3a512 commit 57df623
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export class UpdateMapColorsEffect {
const attributeDescriptors = state.fileSettings.attributeDescriptors
const currentMapColors = state.appSettings.mapColors

// Only reverse colors if the metric direction is reversed
if (attributeDescriptors[colorMetric]?.direction === 1) {
const reversedMapColors: MapColors = JSON.parse(stringify(currentMapColors))
const temporary = reversedMapColors.negative
Expand All @@ -32,7 +31,6 @@ export class UpdateMapColorsEffect {
return setMapColors({ value: reversedMapColors })
}

// Keep current colors if they exist, otherwise use defaults
return setMapColors({ value: currentMapColors ?? defaultMapColors })
})
)
Expand Down

0 comments on commit 57df623

Please sign in to comment.