Skip to content

Commit

Permalink
Fix bug with the incorrect data structure while storing data
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySharabin committed Aug 11, 2022
1 parent d39d628 commit 8caa5d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mavo-gsheets.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Google Sheets backend plugin for Mavo
* @author Dmitry Sharabin and contributors
* @version 1.0.8
* @version 1.0.9
*/

(($, $f) => {
Expand Down Expand Up @@ -368,7 +368,7 @@

if (headings.length > 1) {
// We have a complex collection
data = data.map(d => Object.values(d));
data = data.map(d => headings.map(heading => d[heading]));
}
else {
// We have a simple collection
Expand Down

0 comments on commit 8caa5d5

Please sign in to comment.