fix: other way round, now correctly fetches
This commit is contained in:
parent
3a53c6a2ed
commit
4e45e359b2
1 changed files with 2 additions and 2 deletions
|
@ -94,8 +94,8 @@ impl From<serde_json::Value> for Node<serde_json::Value> {
|
|||
match value {
|
||||
serde_json::Value::String(uri) => Node::Link(Box::new(uri)),
|
||||
serde_json::Value::Object(_) => match value.get("href") {
|
||||
Some(_) => Node::Object(value),
|
||||
None => Node::Link(Box::new(value)),
|
||||
None => Node::Object(value),
|
||||
Some(_) => Node::Link(Box::new(value)),
|
||||
},
|
||||
serde_json::Value::Array(arr) => Node::Array(
|
||||
arr
|
||||
|
|
Loading…
Reference in a new issue