fix: locale no puede ser undefined
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
b2e3d61954
commit
3d352fa0fd
|
@ -37,10 +37,7 @@ export default class Controller extends Section {
|
||||||
|
|
||||||
const validations = window.validations;
|
const validations = window.validations;
|
||||||
value.forEach(log => {
|
value.forEach(log => {
|
||||||
let locale = {};
|
const locale = validations[log.changedModel].locale ? validations[log.changedModel].locale : {};
|
||||||
try {
|
|
||||||
locale = validations[log.changedModel].locale;
|
|
||||||
} catch (e) {}
|
|
||||||
|
|
||||||
log.oldProperties = this.getInstance(log.oldInstance, locale);
|
log.oldProperties = this.getInstance(log.oldInstance, locale);
|
||||||
log.newProperties = this.getInstance(log.newInstance, locale);
|
log.newProperties = this.getInstance(log.newInstance, locale);
|
||||||
|
|
Loading…
Reference in New Issue