Skip to content

Commit

Permalink
Merge pull request akaunting#1740 from SevanNerse/master
Browse files Browse the repository at this point in the history
fixing an exception that throws if the value of 'multiple' is true
  • Loading branch information
cuneytsenturk authored Jan 9, 2021
2 parents 1fe38ff + 050a424 commit aa33bd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/assets/js/components/AkauntingSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export default {
let options = [];
this.selected.forEach(function (selected_option_id, selected_index) {
if (option.key == this.selected) {
if (option.key == selected_option_id) {
indexs.push(selected_index);
values.push(option.id);
labels.push(option.value);
Expand Down Expand Up @@ -451,7 +451,7 @@ export default {
let options = [];
this.selected.forEach(function (selected_option_id, selected_index) {
if (option.key == this.selected) {
if (option.key == selected_option_id) {
indexs.push(selected_index);
values.push(option.id);
labels.push(option.value);
Expand Down
4 changes: 2 additions & 2 deletions resources/assets/js/components/AkauntingSelectRemote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ export default {
let options = [];
this.selected.forEach(function (selected_option_id, selected_index) {
if (option.value == this.selected) {
if (option.value == selected_option_id) {
indexs.push(selected_index);
values.push(option.id);
labels.push(option.value);
Expand Down Expand Up @@ -567,7 +567,7 @@ export default {
let options = [];
this.selected.forEach(function (selected_option_id, selected_index) {
if (option.value == this.selected) {
if (option.value == selected_option_id) {
indexs.push(selected_index);
values.push(option.id);
labels.push(option.value);
Expand Down

0 comments on commit aa33bd9

Please sign in to comment.