fix:when node merges values, warp will be extra','

This commit is contained in:
yanmao 2022-01-06 19:51:20 +08:00
parent 75b12cd0fd
commit f34d86eb01
1 changed files with 4 additions and 1 deletions

View File

@ -260,7 +260,10 @@ class NodeModel implements NodeModelInterface {
outer.attributes(key, attributes[key]);
else {
const attributes = outer.attributes(key).split(',');
if (attributes.indexOf(attributes[key]) < 0)
if (
attributes[key] !== undefined &&
attributes.indexOf(attributes[key]) < 0
)
attributes.push(attributes[key]);
outer.attributes(key, attributes.join(','));
}