浏览代码

Use new replace_node_with name for replace_placeholder_with_nodes

Nico Burns 5 天之前
父节点
当前提交
339f9e2f40
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      packages/native/src/mutation_writer.rs

+ 1 - 2
packages/native/src/mutation_writer.rs

@@ -149,8 +149,7 @@ impl WriteMutations for MutationWriter<'_> {
         // the stack and then "load_child" reads from the top of the stack.
         let new_node_ids = self.state.m_stack_nodes(m);
         let anchor_node_id = self.load_child(path);
-        self.docm
-            .replace_placeholder_with_nodes(anchor_node_id, &new_node_ids);
+        self.docm.replace_node_with(anchor_node_id, &new_node_ids);
     }
 
     fn remove_node(&mut self, id: ElementId) {