diff --git a/mod/workspace/getLayer.js b/mod/workspace/getLayer.js index 539ecdb42..8134ad65c 100644 --- a/mod/workspace/getLayer.js +++ b/mod/workspace/getLayer.js @@ -40,6 +40,9 @@ module.exports = async (params) => { let layer = locale.layers[params.layer] + // layer maybe null or undefined. + if (!layer) return; + // Return already merged layer. if (layer.merged) return layer