mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-14 17:54:13 +01:00
Update packages/mermaid/src/diagrams/git/gitGraphAst.ts
Co-authored-by: Sidharth Vinod <github@sidharth.dev>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user