Skip to content

Commit

Permalink
chore: fix config null check
Browse files Browse the repository at this point in the history
  • Loading branch information
jarekdanielak committed Dec 6, 2024
1 parent a53c730 commit 85efabb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cloud-element-templates/ElementTemplatesLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export default class ElementTemplatesLoader extends TemplatesLoader {
if (isArray(config) || isFunction(config)) {
loadTemplates = config;
}
if (config.loadTemplates) {

if (config && config.loadTemplates) {
loadTemplates = config.loadTemplates;
}

Expand Down

0 comments on commit 85efabb

Please sign in to comment.