Fix day/night state not updating when map isn't selected

This commit is contained in:
James Lyne 2021-05-20 15:17:07 +01:00
parent acd3e8a443
commit 9473754313

View File

@ -90,7 +90,7 @@ export default defineComponent({
watch(active, (newValue) => newValue ? enableLayer() : disableLayer());
watch(night, (newValue) => {
if(props.map.nightAndDay && active.value) {
if(props.map.nightAndDay) {
layer.setNight(newValue);
}
});