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.
1 parent f910857 commit b7affafCopy full SHA for b7affaf
src/index.js
@@ -1,5 +1,9 @@
1
import arrayToObject from './lib/array-to-object';
2
3
+function objectEntries(obj) {
4
+ return Object.keys(obj).map(key => [key, obj[key]]);
5
+}
6
+
7
function normalizeNamespace(fn) {
8
return (...params) => {
9
// eslint-disable-next-line prefer-const
@@ -69,7 +73,7 @@ export const mapMultiRowFields = normalizeNamespace((
69
73
entries[key] = {
70
74
get() {
71
75
const store = this.$store;
72
- const rows = Object.entries(store.getters[getterType](path));
76
+ const rows = objectEntries(store.getters[getterType](path));
77
78
return rows
79
.map(fieldsObject => Object.keys(fieldsObject[1]).reduce((prev, fieldKey) => {
0 commit comments