Skip to content

Commit

Permalink
🐛 key value of select key value
Browse files Browse the repository at this point in the history
  • Loading branch information
volterra79 committed Oct 11, 2024
1 parent 1d91b22 commit 2a38721
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SearchPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@
field: filter,
});

data.data = (data.data || []).map(([key, value]) => ({ key: value, value }));
//@since 3.11.0 first array value is value, second is key
data.data = (data.data || []).map(([value, key]) => ({ key, value }));

// case value map
if (!d.dependance_strict && 'selectfield' === d.type) {
Expand Down

0 comments on commit 2a38721

Please sign in to comment.