Fix nullable stored-history constructor switching
Rust checks / check (ubuntu-latest) (push) Canceled after 0s
Rust checks / check (windows-latest) (push) Canceled after 0s
Rust checks / check (ubuntu-latest) (push) Canceled after 0s
Rust checks / check (windows-latest) (push) Canceled after 0s
This commit is contained in:
@@ -449,6 +449,9 @@ impl Draft {
|
||||
None
|
||||
};
|
||||
let tag = |value: &Value| {
|
||||
if self.kind == RecordKind::Trace && history_fields::is_path(path) {
|
||||
return history_fields::constructor_tag(path, value);
|
||||
}
|
||||
value
|
||||
.as_str()
|
||||
.or_else(|| value.as_object()?.keys().next().map(String::as_str))
|
||||
|
||||
Reference in New Issue
Block a user