This commit is contained in:
ashrafzarkanisala
2024-07-01 22:45:40 +03:00
parent 6a3632f696
commit e9300518b1
2 changed files with 6 additions and 2 deletions

View File

@ -60,8 +60,11 @@ class _AlertDialogCountdownState extends State<AlertDialogCountdown> {
setState(() {
durationInSeconds = newDuration.inSeconds;
});
context.read<CreateSceneBloc>().add(
SelectedValueEvent(value: newDuration.inSeconds, code: 'delay'));
context.read<CreateSceneBloc>().add(SelectedValueEvent(
value: newDuration.inSeconds,
code: widget.function.deviceId == 'delay'
? 'delay'
: widget.function.code));
},
),
);