From 281064f714cd7da9413a8a08c3a967a269c9bb6d Mon Sep 17 00:00:00 2001 From: Austin-Fulbright <53443958+Austin-Fulbright@users.noreply.github.com> Date: Sat, 27 Jul 2024 04:03:02 -0400 Subject: [PATCH] Update packages/mermaid/src/diagrams/git/gitGraphAst.ts Co-authored-by: Sidharth Vinod --- packages/mermaid/src/diagrams/git/gitGraphAst.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/git/gitGraphAst.ts b/packages/mermaid/src/diagrams/git/gitGraphAst.ts index 2f29a45319..48689d9c52 100644 --- a/packages/mermaid/src/diagrams/git/gitGraphAst.ts +++ b/packages/mermaid/src/diagrams/git/gitGraphAst.ts @@ -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);