Update packages/mermaid/src/diagrams/flowchart/flowDb.ts

Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
Sidharth Vinod 2024-01-19 13:49:10 +05:30 committed by GitHub
parent af7282511a
commit c11093fa71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ export const setClass = function (ids: string, className: string) {
};
const setTooltip = function (ids: string, tooltip: string) {
if (!tooltip) {
if (tooltip === undefined) {
return;
}
tooltip = sanitizeText(tooltip);