We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 886c135 + e6f776c commit b94ad8dCopy full SHA for b94ad8d
src/index.js
@@ -69,11 +69,11 @@ export const mapMultiRowFields = normalizeNamespace((
69
entries[key] = {
70
get() {
71
const store = this.$store;
72
- const rows = store.getters[getterType](path);
+ const rows = Object.entries(store.getters[getterType](path));
73
74
return rows
75
- .map((fieldsObject, index) => Object.keys(fieldsObject).reduce((prev, fieldKey) => {
76
- const fieldPath = `${path}[${index}].${fieldKey}`;
+ .map((fieldsObject, index) => Object.keys(fieldsObject[1]).reduce((prev, fieldKey) => {
+ const fieldPath = `${path}[${fieldsObject[0]}].${fieldKey}`;
77
78
return Object.defineProperty(prev, fieldKey, {
79
0 commit comments