Skip to content

Commit

Permalink
Merge pull request waterlinejs#11 from konstantinzolotarev/patch-1
Browse files Browse the repository at this point in the history
Getting error for field that somehow not exist.
  • Loading branch information
tjwebb committed Apr 4, 2016
2 parents 78798b7 + d5b7215 commit 1a7412b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ const Util = {
}

// remove any autoIncrement fields from data
if (definition.autoIncrement) {
if (!definition || definition.autoIncrement) {
delete data[attr]
}
if (SpatialUtil.isSpatialColumn(definition)) {
Expand Down

0 comments on commit 1a7412b

Please sign in to comment.