Small fix: always show the buttons in the AddUI

This commit is contained in:
pietervdvn 2021-07-29 00:43:16 +02:00
parent b1a9b57d03
commit 38635ba8b2

View file

@ -238,7 +238,7 @@ export default class SimpleAddUI extends Toggle {
const allButtons = [];
for (const layer of State.state.filteredLayers.data) {
if (layer.isDisplayed.data === false && State.state.featureSwitchFilter.data) {
if (layer.isDisplayed.data === false && !State.state.featureSwitchFilter.data) {
// The layer is not displayed and we cannot enable the layer control -> we skip
continue;
}