Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #93 from kintone-labs/SSR-1805
Browse files Browse the repository at this point in the history
Remove empty row when it haven't values.
  • Loading branch information
josh-vo authored Nov 17, 2021
2 parents c01d422 + 46aa6ab commit eddccc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions import-with-bulkRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ func importFromCSV(app *kintone.App, _reader io.Reader) error {
}
}
for key, table := range tables {
if len(table.Fields) == 0 {
continue
}
if record[key] == nil {
record[key] = getField(kintone.FT_SUBTABLE, "")
}
Expand Down

0 comments on commit eddccc0

Please sign in to comment.