Skip to content

Commit

Permalink
trying another fix for #2184
Browse files Browse the repository at this point in the history
  • Loading branch information
iannesbitt committed Oct 23, 2023
1 parent f71b1fc commit 865f66c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/models/maps/AssetColorPalette.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ define([
* values of the attributes, which will be set on the model.
*/
initialize: function (paletteConfig) {
const options = {sort: false};
try {
if (paletteConfig && paletteConfig.colors) {
this.set("colors", new AssetColors(paletteConfig.colors));
this.set("colors", new AssetColors(paletteConfig.colors, options));
}
// If a continuous palette has only 1 colour, then treat it as
// categorical
Expand Down

0 comments on commit 865f66c

Please sign in to comment.