Javascript console error fixed

This commit is contained in:
Burak Civan 2021-05-31 16:18:30 +03:00
parent 7de2814a5f
commit 81852f00fa
3 changed files with 4 additions and 7 deletions

View File

@ -64,6 +64,7 @@ import AkauntingRecurring from './AkauntingRecurring';
import Form from './../plugins/form';
import { Alert, ColorPicker } from 'element-ui';
import Global from './../mixins/global';
export default {
name: 'akaunting-modal-add-new',
@ -150,7 +151,7 @@ export default {
this.component = Vue.component('add-new-component', (resolve, reject) => {
resolve({
template : '<div id="modal-add-new-form-' + form_prefix + '">' + this.message + '</div>',
mixins: [Global],
components: {
AkauntingRadioGroup,
AkauntingSelect,

View File

@ -318,9 +318,7 @@ export default {
this.selected = this.value;
if (this.model.length) {
if (eval(this.model) !== undefined) {
this.selected = eval(this.model);
} else {
if (this.model !== undefined) {
this.selected = this.model;
}
}

View File

@ -430,9 +430,7 @@ export default {
this.selected = this.value;
if (this.model.length) {
if (eval(this.model) !== undefined) {
this.selected = eval(this.model);
} else {
if (this.model !== undefined) {
this.selected = this.model;
}
}