mirror of
https://github.com/nushell/nushell
synced 2024-11-10 07:04:13 +00:00
parent
63f00e78d1
commit
85b06b22d9
1 changed files with 3 additions and 5 deletions
|
@ -177,14 +177,12 @@ fn run_histogram(
|
|||
match v {
|
||||
// parse record, and fill valid value to actual input.
|
||||
Value::Record { val, .. } => {
|
||||
for (c, v) in val.iter() {
|
||||
if c == col_name {
|
||||
if let Some(v) = val.get(col_name) {
|
||||
if let Ok(v) = HashableValue::from_value(v.clone(), head_span) {
|
||||
inputs.push(v);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Propagate existing errors.
|
||||
Value::Error { error, .. } => return Err(*error),
|
||||
_ => continue,
|
||||
|
|
Loading…
Reference in a new issue