Skip to content

Commit

Permalink
Fix handling of missing plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
skodapetr committed Sep 18, 2024
1 parent b9e254d commit cb66cc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/client/template/template-expand.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
Expand Down

0 comments on commit cb66cc8

Please sign in to comment.