Skip to content

Commit 8caa5d5

Browse files
Fix bug with the incorrect data structure while storing data
1 parent d39d628 commit 8caa5d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mavo-gsheets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Google Sheets backend plugin for Mavo
55
* @author Dmitry Sharabin and contributors
6-
* @version 1.0.8
6+
* @version 1.0.9
77
*/
88

99
(($, $f) => {
@@ -368,7 +368,7 @@
368368

369369
if (headings.length > 1) {
370370
// We have a complex collection
371-
data = data.map(d => Object.values(d));
371+
data = data.map(d => headings.map(heading => d[heading]));
372372
}
373373
else {
374374
// We have a simple collection

0 commit comments

Comments
 (0)