Merge pull request #3636 from maiermic/bug/3263-border_attribute_does_not_work_in_a_certain_writing_style

fix: border attribute does not work in a certain writing style
This commit is contained in:
Knut Sveidqvist
2022-10-25 14:30:29 +02:00
committed by GitHub

View File

@@ -119,7 +119,11 @@ export const addVertex = function (_id, text, type, style, classes, dir, props =
if (typeof dir !== 'undefined') {
vertices[id].dir = dir;
}
vertices[id].props = props;
if (typeof vertices[id].props === 'undefined') {
vertices[id].props = props;
} else if (typeof props !== 'undefined') {
Object.assign(vertices[id].props, props);
}
};
/**