From 3d352fa0fdf3c0ba56a61b2912f26b9b7f57c74f Mon Sep 17 00:00:00 2001 From: vicent Date: Wed, 16 Nov 2022 12:06:50 +0100 Subject: [PATCH] fix: locale no puede ser undefined --- front/salix/components/log/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/front/salix/components/log/index.js b/front/salix/components/log/index.js index 436b8bf4c..2796931a0 100644 --- a/front/salix/components/log/index.js +++ b/front/salix/components/log/index.js @@ -37,10 +37,7 @@ export default class Controller extends Section { const validations = window.validations; value.forEach(log => { - let locale = {}; - try { - locale = validations[log.changedModel].locale; - } catch (e) {} + const locale = validations[log.changedModel].locale ? validations[log.changedModel].locale : {}; log.oldProperties = this.getInstance(log.oldInstance, locale); log.newProperties = this.getInstance(log.newInstance, locale);