From d120d5320ff6a809ce360ac3f7aa1da3fcd4e5e1 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Thu, 13 Jan 2022 23:10:32 +0100 Subject: [PATCH] bug in v-localize --- zero.Backoffice.UI/app/directives/v-localize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zero.Backoffice.UI/app/directives/v-localize.ts b/zero.Backoffice.UI/app/directives/v-localize.ts index 6692f824..bb22be09 100644 --- a/zero.Backoffice.UI/app/directives/v-localize.ts +++ b/zero.Backoffice.UI/app/directives/v-localize.ts @@ -12,7 +12,7 @@ export default (el, binding) => const isObject = typeof binding.value === 'object'; let key = hasValue ? (isObject ? binding.value.key : binding.value) : null; let options = hasValue && isObject ? binding.value : null; - let html = isObject ? binding.value.html : binding.arg === 'html'; + let html = isObject && binding.value ? binding.value.html : binding.arg === 'html'; const result = hasValue ? localize(key, options) : '';