Skip to content

Commit e240ce6

Browse files
committed
Handle layer.source as arrays in equality check
1 parent 82fbdcd commit e240ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/mapbox/layers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ proto.needsNewSource = function(opts) {
7373
// stay safe and make new source on type changes
7474
return (
7575
this.sourceType !== opts.sourcetype ||
76-
this.source !== opts.source ||
76+
JSON.stringify(this.source) !== JSON.stringify(opts.source) ||
7777
this.layerType !== opts.type
7878
);
7979
};

0 commit comments

Comments
 (0)