Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Sep 3, 2024
1 parent 2b8f60d commit 14b1f7a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,8 @@ function getTopSuggestion(
);

return (
suggestions.find((s) => s.changeType === 'unchanged') || // switching to vis that doesn't change anything is the best option
suggestions.find((s) => s.changeType === 'reduced') || // switching to vis that reduces data model if possible
suggestions.find((s) => s.keptLayerIds.some((id) => id === layerId)) || // switching to vis that at least keeps the chosen layer
suggestions.find((s) => s.changeType === 'unchanged' || s.changeType === 'reduced') ||
suggestions.find((s) => s.keptLayerIds.some((id) => id === layerId)) ||
suggestions[0]
);
}
Expand Down

0 comments on commit 14b1f7a

Please sign in to comment.