diff --git a/lib/editors/work.dart b/lib/editors/work.dart index ad659a7..7104b44 100644 --- a/lib/editors/work.dart +++ b/lib/editors/work.dart @@ -373,7 +373,7 @@ class _WorkEditorState extends State { work: Work( id: workId, title: titleController.text, - composer: composer.id, + composer: composer?.id, ), instrumentIds: instruments.map((i) => i.id).toList(), );