diff --git a/frontend/client/template/template-expand.js b/frontend/client/template/template-expand.js index 13c01a2b..548a3a3e 100644 --- a/frontend/client/template/template-expand.js +++ b/frontend/client/template/template-expand.js @@ -123,7 +123,8 @@ function setComponentsSearch(templates) { templates.forEach((template) => { const label = template.label; - const keywords = template._coreReference.keyword; + // _coreReference may not be available + const keywords = template._coreReference?.keyword ?? []; template.search = (label + "," + keywords.join(",")).toLowerCase(); }); }