Skip to content

Commit b7affaf

Browse files
committed
Fix browser support for IE11
1 parent f910857 commit b7affaf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import arrayToObject from './lib/array-to-object';
22

3+
function objectEntries(obj) {
4+
return Object.keys(obj).map(key => [key, obj[key]]);
5+
}
6+
37
function normalizeNamespace(fn) {
48
return (...params) => {
59
// eslint-disable-next-line prefer-const
@@ -69,7 +73,7 @@ export const mapMultiRowFields = normalizeNamespace((
6973
entries[key] = {
7074
get() {
7175
const store = this.$store;
72-
const rows = Object.entries(store.getters[getterType](path));
76+
const rows = objectEntries(store.getters[getterType](path));
7377

7478
return rows
7579
.map(fieldsObject => Object.keys(fieldsObject[1]).reduce((prev, fieldKey) => {

0 commit comments

Comments
 (0)