Skip to content

Commit 7d2633e

Browse files
committed
Retrieve given id from the old model before creating a new one without an id
1 parent a2e9d1f commit 7d2633e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/feature/sound/modal/sound_file_modal.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ class _SoundFileModalState extends State<SoundFileModal> {
154154
if (_formKey.currentState?.validate() ?? false) {
155155
widget.onSave?.call(
156156
SoundFileSource(
157+
id: widget.initialData?.id,
157158
name: _name,
158159
volume: _volume,
159160
pitch: _pitch,

0 commit comments

Comments
 (0)