Bug fixes

This commit is contained in:
mohammad
2024-12-01 12:05:19 +03:00
parent e003d9b8b3
commit 1aa6b78fb4
2 changed files with 5 additions and 5 deletions

View File

@ -162,11 +162,11 @@ class SaveRoutineHelper {
.read<RoutineBloc>() .read<RoutineBloc>()
.add(const CreateSceneEvent()); .add(const CreateSceneEvent());
} }
}
if (context.read<RoutineBloc>().state.errorMessage == if (context.read<RoutineBloc>().state.errorMessage ==
null) { null) {
Navigator.pop(context, true); Navigator.pop(context, true);
} }
}
}, },
isConfirmEnabled: true, isConfirmEnabled: true,
), ),

View File

@ -92,7 +92,7 @@ class Condition {
return { return {
'code': code, 'code': code,
'entityId': entityId, 'entityId': entityId,
'entityType': entityType, 'entityType': 'device_report',
'expr': expr.toMap(), 'expr': expr.toMap(),
}; };
} }