Skip to content

Number zero written as empty string #14

@JanneSalo

Description

@JanneSalo

It seems that whenever I have 0 as a Number in my data, it's added as an empty string in the sheet. By converting the Number to String, I'm able to work around the issue, but it would be nice to be able to use the correct data type.

I guess the problem is in addRow(): Since the number 0 evaluates to false (while the string "0" doesn't), the value is lost in the addCell call: @_addCell(row[key] || "", col + 1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions