From cb66cc860cedd72994b0b26da9cd98e4c9b70f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0koda?= Date: Wed, 18 Sep 2024 10:00:25 +0200 Subject: [PATCH] Fix handling of missing plugin --- frontend/client/template/template-expand.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/client/template/template-expand.js b/frontend/client/template/template-expand.js index 13c01a2b0..548a3a3e0 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(); }); }