Merge pull request #4562 from lishid/patch-3
Fix flowchart tooltip typing bug
This commit is contained in:
commit
1a4e5d9c5a
|
@ -342,7 +342,10 @@ export const setLink = function (ids, linkStr, target) {
|
|||
setClass(ids, 'clickable');
|
||||
};
|
||||
export const getTooltip = function (id) {
|
||||
return tooltips[id];
|
||||
if (tooltips.hasOwnProperty(id)) {
|
||||
return tooltips[id];
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -443,7 +446,7 @@ export const clear = function (ver = 'gen-1') {
|
|||
subGraphs = [];
|
||||
subGraphLookup = {};
|
||||
subCount = 0;
|
||||
tooltips = [];
|
||||
tooltips = {};
|
||||
firstGraphFlag = true;
|
||||
version = ver;
|
||||
commonClear();
|
||||
|
|
Loading…
Reference in New Issue