From ec79a190474f40d36c03e747454dc91a2a7cb257 Mon Sep 17 00:00:00 2001 From: dbauszus-glx Date: Thu, 21 Mar 2024 15:36:25 +0000 Subject: [PATCH] layer null merge --- mod/workspace/getLayer.js | 3 +++ 1 file changed, 3 insertions(+) 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