#3252 Handling for trailing whitespaces in subgraph titles
This commit is contained in:
parent
9660b0e9fb
commit
551b37f969
|
@ -456,8 +456,8 @@ export const defaultStyle = function () {
|
|||
export const addSubGraph = function (_id, list, _title) {
|
||||
// console.log('addSubGraph', _id, list, _title);
|
||||
let id = _id.trim();
|
||||
let title = _title;
|
||||
if (_id === _title && _title.match(/\s/)) {
|
||||
let title = _title.trim();
|
||||
if (id === title && title.match(/\s/)) {
|
||||
id = undefined;
|
||||
}
|
||||
/** @param a */
|
||||
|
|
Loading…
Reference in New Issue