Browse Source

fix: generate brace in rosetta

Jonathan Kelley 2 năm trước cách đây
mục cha
commit
2a9eb90154
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      packages/rsx-rosetta/src/lib.rs

+ 2 - 0
packages/rsx-rosetta/src/lib.rs

@@ -73,6 +73,7 @@ pub fn rsx_node_from_html(node: &Node) -> Option<BodyNode> {
                 attributes,
                 _is_static: false,
                 key: None,
+                brace: Default::default(),
             }))
         }
 
@@ -107,6 +108,7 @@ pub fn collect_svgs(children: &mut [BodyNode], out: &mut Vec<BodyNode>) {
                     fields: vec![],
                     children: vec![],
                     manual_props: None,
+                    brace: Default::default(),
                 });
 
                 std::mem::swap(child, &mut new_comp);