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

Co-authored-by: Sidharth Vinod <github@sidharth.dev>
This commit is contained in:
Austin-Fulbright
2024-07-27 04:03:02 -04:00
committed by GitHub
parent 62757c529f
commit 281064f714

View File

@@ -103,7 +103,7 @@ export const commit = function (msg: string, id: string, type: number, tags: str
log.debug('in pushCommit ' + newCommit.id);
};
export const branch = function (name: string, order: number | undefined) {
export const branch = function (name: string, order?: number) {
name = common.sanitizeText(name, getConfig());
if (!state.records.branches.has(name)) {
state.records.branches.set(name, state.records.head != null ? state.records.head.id : null);