From 80cb0b1f9fa8edc88244051563e7aae0bb6125a8 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 15 Nov 2024 10:53:55 -0700 Subject: [PATCH] Avoid egwIsMobile() is undefined in tests --- api/js/etemplate/Et2Email/Et2Email.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Email/Et2Email.ts b/api/js/etemplate/Et2Email/Et2Email.ts index 41226a1add..6bf618fafa 100644 --- a/api/js/etemplate/Et2Email/Et2Email.ts +++ b/api/js/etemplate/Et2Email/Et2Email.ts @@ -1261,11 +1261,12 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI { const classes = option.class ? Object.fromEntries((option.class).split(" ").map(k => [k, true])) : {}; const value = (option.value).replaceAll(" ", "___"); + const isMobile = typeof egwIsMobile == "function" ? egwIsMobile() : false return html`