diff --git a/api/js/etemplate/Et2Select/Et2Select.ts b/api/js/etemplate/Et2Select/Et2Select.ts index 8c18af335c..511b345051 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -869,7 +869,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect) protected _createImage(item) { - let image = item.querySelector("et2-image") || item.querySelector("[slot='prefix']"); + let image = item ? item.querySelector("et2-image") || item.querySelector("[slot='prefix']") : null; if(image) { image = image.clone();