Formatting and small cleanups

This commit is contained in:
Pieter Vander Vennet 2021-03-29 02:53:06 +02:00
parent 15a6794e59
commit 4342b38e9d
8 changed files with 40 additions and 37 deletions

View file

@ -27,7 +27,9 @@ export default class ShowDataLayer {
layoutToUse.addCallbackAndRun(layoutToUse => {
for (const layer of layoutToUse.layers) {
self._layerDict[layer.id] = layer;
if (self._layerDict[layer.id] === undefined) {
self._layerDict[layer.id] = layer;
}
}
});