Skip to content

Commit

Permalink
fix(generate): allow datamodels.type to be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
TMInnovations committed May 10, 2022
1 parent 3a6b03b commit faefc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export async function generate(
}

// Types behaves like model
for (const model of datamodel.types) {
for (const model of datamodel.types || []) {
await eventEmitter.emit('Model', model, eventArguments);
}

Expand Down

0 comments on commit faefc8f

Please sign in to comment.