Skip to content

Commit

Permalink
Fix issue where background panel wouldn't update (close #6627)
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Jul 8, 2019
1 parent 8003e7b commit 83c5fa3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/renderer/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ export function rendererBackground(context) {


background.showsLayer = function(d) {
return d.id === baseLayer.source().id ||
var baseSource = baseLayer.source();
if (!d || !baseSource) return false;
return d.id === baseSource.id ||
_overlayLayers.some(function(layer) { return d.id === layer.source().id; });
};

Expand Down

0 comments on commit 83c5fa3

Please sign in to comment.