Skip to content

Commit

Permalink
layer null merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dbauszus-glx committed Mar 21, 2024
1 parent ea15e89 commit ec79a19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/workspace/getLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ec79a19

Please sign in to comment.