Skip to content

Commit

Permalink
fix(vm-sandbox): handling the style null value (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoushaw authored Dec 19, 2022
1 parent 0e773ff commit 2952841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser-vm/src/dynamicNode/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class DynamicNodeProcessor {
return originAddRule.apply(this, arguments);
};
} else {
if (addedNodes[0]) {
if (addedNodes[0]?.textContent) {
addedNodes[0].textContent = modifyStyleCode(
addedNodes[0].textContent,
);
Expand Down

1 comment on commit 2952841

@vercel
Copy link

@vercel vercel bot commented on 2952841 Dec 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.