jpillora / node-edit-google-spreadsheet

A simple API for editing Google Spreadsheets
304 stars 101 forks source link

Force the entries to be an array #43

Closed ubik2 closed 10 years ago

ubik2 commented 10 years ago

In the spreadsheet receive call, if there is only a single cell in the spreadsheet, result.feed.entry will be a single record, and the subsequent iteration over entries will instead iterate over object properties.

This leads to: TypeError: Cannot read property 'row' of undefined

This patch forces the entries to be an array.

jpillora commented 10 years ago

published