Update packages/mermaid/src/diagrams/git/gitGraphParser.ts

Co-authored-by: Sidharth Vinod <github@sidharth.dev>
This commit is contained in:
Austin-Fulbright
2024-07-27 04:03:14 -04:00
committed by GitHub
parent ec2d9c9a08
commit 5dfc94e6f5

View File

@@ -51,7 +51,7 @@ const parseCommit = (commit: CommitAst) => {
const id = commit.id; const id = commit.id;
const message = commit.message ?? ''; const message = commit.message ?? '';
const tags = commit.tags ?? undefined; const tags = commit.tags ?? undefined;
const type = commit.type !== undefined ? commitType[commit.type] : 0; const type = commit.type !== undefined ? commitType[commit.type] : commitType.NORMAL;
db.commit(message, id, type, tags); db.commit(message, id, type, tags);
}; };