Fix type check
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2021-03-06 14:29:01 +01:00
parent e8bbb74185
commit eb46b3496a

View File

@ -343,7 +343,7 @@ export class MapEffects {
mergeMap(([[[action, selected], enabled],overlayLayers]) => {
let layers = [];
if(selected) {
if(selected instanceof TemporalItemLayer ) {
if(selected && (selected as TemporalItemLayer).selectedItemLayer ) {
selected=(selected as TemporalItemLayer).selectedItemLayer;
}
layers.push(selected);