mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-23 05:24:51 +00:00
fix: use container id when converting unresolved to jsvalue
This commit is contained in:
parent
94f481e65e
commit
16e76eaf8e
1 changed files with 1 additions and 11 deletions
|
@ -351,17 +351,7 @@ pub mod wasm {
|
|||
|
||||
map.into_js_result().unwrap()
|
||||
}
|
||||
LoroValue::Unresolved(container_id) => {
|
||||
let id = *container_id;
|
||||
let map = Object::new();
|
||||
js_sys::Reflect::set(
|
||||
&map,
|
||||
&JsValue::from_str("UnresolvedContainer"),
|
||||
&JsValue::from(id),
|
||||
)
|
||||
.unwrap();
|
||||
map.into_js_result().unwrap()
|
||||
}
|
||||
LoroValue::Unresolved(container_id) => JsValue::from(*container_id),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue