Merge branch 'release_9.2.0_buggfixes' into sidv/TSMindmap

* release_9.2.0_buggfixes:
  fix: Add default arg to options
This commit is contained in:
Sidharth Vinod 2022-10-19 19:13:46 +05:30
commit 5192608f7c
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 1 additions and 1 deletions

View File

@ -453,7 +453,7 @@ const handleDirective = function (p: any, directive: any, type: string): void {
};
/** @param {MermaidConfig} options */
async function initialize(options: MermaidConfig) {
async function initialize(options: MermaidConfig = {}) {
// Handle legacy location of font-family configuration
if (options.fontFamily) {
if (!options.themeVariables) {