mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 18:57:25 +01:00
Database: Fix null error
This commit is contained in:
parent
9f2c86db78
commit
e2167143ed
1 changed files with 3 additions and 3 deletions
|
|
@ -96,9 +96,9 @@ class Database extends _$Database {
|
||||||
for (final model in models) {
|
for (final model in models) {
|
||||||
await into(performances).insert(Performance(
|
await into(performances).insert(Performance(
|
||||||
recording: recording.id,
|
recording: recording.id,
|
||||||
person: model.person.id,
|
person: model.person?.id,
|
||||||
ensemble: model.ensemble.id,
|
ensemble: model.ensemble?.id,
|
||||||
role: model.role.id,
|
role: model.role?.id,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue