Skip to content

Commit

Permalink
Javascript console error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
brkcvn committed May 31, 2021
1 parent 7de2814 commit 81852f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion resources/assets/js/components/AkauntingModalAddNew.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions resources/assets/js/components/AkauntingSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
4 changes: 1 addition & 3 deletions resources/assets/js/components/AkauntingSelectRemote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 81852f0

Please sign in to comment.