mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-23 13:39:12 +00:00
fix: list assert err
This commit is contained in:
parent
9bdb6b9fd4
commit
c798662dd1
1 changed files with 0 additions and 4 deletions
|
@ -95,10 +95,6 @@ impl ListContainer {
|
|||
}
|
||||
|
||||
fn insert_value<C: Context>(&mut self, ctx: &C, pos: usize, value: LoroValue) -> Option<ID> {
|
||||
assert!(
|
||||
value.as_unresolved().is_none(),
|
||||
"To insert a container to list, you should use insert_obj method or insert a prelim type to the list"
|
||||
);
|
||||
let store = ctx.log_store();
|
||||
let mut store = store.write().unwrap();
|
||||
let id = store.next_id();
|
||||
|
|
Loading…
Reference in a new issue