Skip to content

Commit

Permalink
Update packages/mermaid/src/diagrams/git/gitGraphAst.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sidharth Vinod <[email protected]>
  • Loading branch information
Austin-Fulbright and sidharthv96 authored Jul 27, 2024
1 parent 62757c5 commit 281064f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/git/gitGraphAst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 281064f

Please sign in to comment.