Skip to content

Commit

Permalink
report correct operation for trendline layer
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdaemon committed Oct 21, 2022
1 parent f322551 commit 1be28b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ export const getMetricVisualization = ({
return newState;
},

getRemoveOperation(_state, _layerId) {
return 'clear';
getRemoveOperation(state, layerId) {
return layerId === state.trendlineLayerId ? 'remove' : 'clear';
},

getLayersToLinkTo(state, newLayerId: string): string[] {
Expand Down

0 comments on commit 1be28b7

Please sign in to comment.