Skip to content

Commit

Permalink
Handle case were extraConfig is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Mario564 committed Aug 22, 2024
1 parent 8f29063 commit 57e60ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export abstract class BaseGenerator<
}

if (extraConfigBuilder && builtIndexes.length > fks.length) {
const indexes = extraConfig;
const indexes = extraConfig ?? {};

dbml.newLine().tab().insert('indexes {').newLine();

Expand Down

0 comments on commit 57e60ae

Please sign in to comment.