aboutsummaryrefslogtreecommitdiffstats
path: root/src/document/inspect.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/document/inspect.rs')
-rw-r--r--src/document/inspect.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/document/inspect.rs b/src/document/inspect.rs
index f0356de..ffdf536 100644
--- a/src/document/inspect.rs
+++ b/src/document/inspect.rs
@@ -110,7 +110,8 @@ pub(crate) fn placed(doc: &Document, path: &[String]) -> Path {
break;
}
place = place.child(&Key::Map(key.as_str().into()));
- match doc.get(&object, key.as_str()) {
+ // As a read shows it, of values written there at once (`store::shown`).
+ match super::store::shown(doc, &object, key.as_str()) {
Ok(Some((automerge::Value::Object(kind), id))) => {
place.in_list = matches!(kind, automerge::ObjType::List | automerge::ObjType::Text);
object = id;