Skip to content

Commit

Permalink
Merge pull request #1182 from dbauszus-glx/format-decorator-check
Browse files Browse the repository at this point in the history
Check whether format exists in layer decorator
  • Loading branch information
dbauszus-glx authored Mar 12, 2024
2 parents 26b54a1 + 3a432ad commit 3bf57f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/layer/decorate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The layer object to be decorated.
export default async function decorate(layer) {

// Decorate layer format methods.
await mapp.layer.formats[layer.format](layer);
await mapp.layer.formats[layer.format]?.(layer);

// If layer does not exist, return.
if (!layer.L) return;
Expand Down

0 comments on commit 3bf57f6

Please sign in to comment.