mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-11-27 20:04:56 +00:00
Bug fixes
This commit is contained in:
@ -114,8 +114,8 @@ class RoutineSearchAndButtons extends StatelessWidget {
|
||||
onPressed: state.isAutomation || state.isTabToRun
|
||||
? () async {
|
||||
final result = await SettingHelper.showSettingDialog(
|
||||
context: context,
|
||||
);
|
||||
context: context,
|
||||
iconId: state.selectedIcon ?? '');
|
||||
if (result != null) {
|
||||
context
|
||||
.read<RoutineBloc>()
|
||||
@ -249,8 +249,7 @@ class RoutineSearchAndButtons extends StatelessWidget {
|
||||
onPressed: state.isAutomation || state.isTabToRun
|
||||
? () async {
|
||||
final result = await SettingHelper.showSettingDialog(
|
||||
context: context,
|
||||
);
|
||||
context: context, iconId: state.selectedIcon ?? '');
|
||||
if (result != null) {
|
||||
context.read<RoutineBloc>().add(AddSelectedIcon(result));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user