Yield remote fields without needing to clear the original field value (#4515)

This commit is contained in:
Tobie Morgan Hitchcock 2024-08-15 10:22:20 +01:00 committed by GitHub
parent ec0c28fa74
commit d7b392cf8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -151,6 +151,11 @@ impl Value {
Ok(()) Ok(())
} }
}, },
// Current value at path is a record
Value::Thing(_) => {
*self = Value::base();
stk.run(|stk| self.set(stk, ctx, opt, path, val)).await
}
// Current value at path is empty // Current value at path is empty
Value::Null => { Value::Null => {
*self = Value::base(); *self = Value::base();