https://github.com/google/docsy/blob/a72c57c9398b9795daaeac6f6944369cb76d5adb/layouts/partials/scripts/mermaid.html#L21 If nothing is defined in hugo.toml for [params.mermaid] then the referenced code results in `var params = null` being generated. https://github.com/google/docsy/blob/a72c57c9398b9795daaeac6f6944369cb76d5adb/layouts/partials/scripts/mermaid.html#L29 Then when attempting the if statement a call is made against a null value, resulting in the browser console error. `Uncaught TypeError: Cannot read properties of null (reading 'hasOwnProperty')`