mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Fix loading of instrumentations
This commit is contained in:
parent
0adbc889b2
commit
96df2fb148
1 changed files with 2 additions and 2 deletions
|
|
@ -150,7 +150,7 @@ impl Database {
|
|||
.expect("Failed to load instrumentations!")
|
||||
.iter()
|
||||
.map(|instrumentation| {
|
||||
self.get_instrument(instrumentation.id)
|
||||
self.get_instrument(instrumentation.instrument)
|
||||
.expect("Could not find instrument for instrumentation!")
|
||||
})
|
||||
.collect(),
|
||||
|
|
@ -174,7 +174,7 @@ impl Database {
|
|||
.expect("Failed to load part instrumentations!")
|
||||
.iter()
|
||||
.map(|part_instrumentation| {
|
||||
self.get_instrument(part_instrumentation.id)
|
||||
self.get_instrument(part_instrumentation.instrument)
|
||||
.expect("Could not find instrument for part instrumentation!")
|
||||
})
|
||||
.collect(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue