refactor(elementUpdater): dont append undefined style to node #251
This commit is contained in:
@@ -44,6 +44,14 @@ const useElementUpdater = (elements: Elements): void => {
|
||||
};
|
||||
}
|
||||
|
||||
if (style) {
|
||||
return {
|
||||
...existingNode,
|
||||
data,
|
||||
style,
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
...existingNode,
|
||||
data,
|
||||
|
||||
Reference in New Issue
Block a user