fix
This commit is contained in:
parent
6677434ca0
commit
55b318b2f1
2 changed files with 17 additions and 3 deletions
|
@ -50,8 +50,10 @@ impl Location {
|
|||
let locations = get_locations!();
|
||||
for loc in locations.keys() {
|
||||
let loc = locations.get(loc).unwrap();
|
||||
if *loc.parent.as_ref().unwrap_or(&String::new()) == self.id {
|
||||
ret.push(loc.clone());
|
||||
if let Some(parent) = &loc.parent {
|
||||
if *parent == self.id {
|
||||
ret.push(loc.clone());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue