From 6ab34234f5bf8d2798eaf6823dfec766fd5ee6b3 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 19 Jul 2022 18:09:58 +0200 Subject: [PATCH] fix error changing app in preferences --- api/js/etemplate/Et2Select/Et2Select.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Select/Et2Select.ts b/api/js/etemplate/Et2Select/Et2Select.ts index a74d334e5c..1d640f5154 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -570,7 +570,7 @@ export class Et2SelectTab extends Et2SelectApp let option : SelectOption = {value: value, label: value}; if (matches) { - option = options.filter(option => option.value == matches[1])[0]; + option = options.filter(option => option.value == matches[1])[0] || {value: value, label: egw.lang(matches[1])}; option.value = value; option.label += ' '+egw.lang('Tab'); }