This commit is contained in:
Faris Armoush
2025-04-08 16:41:34 +03:00
parent 006bd4c8ae
commit 970f7ed16f
2 changed files with 4 additions and 6 deletions

View File

@ -50,10 +50,10 @@ class DeviceDialogHelper {
final deviceSelectedFunctions =
routineBloc.state.selectedFunctions[data['uniqueCustomId']] ?? [];
if (removeComparetors && data['productType'] != 'WPS') {
//remove the current temp function in the 'if container'
functions.removeAt(3);
}
// if (removeComparetors && data['productType'] != 'WPS') {
// //remove the current temp function in the 'if container'
// functions.removeAt(3);
// }
switch (productType) {
case 'AC':
@ -101,7 +101,6 @@ class DeviceDialogHelper {
removeComparetors: removeComparetors);
case 'GW':
return GatewayHelper.showGatewayFunctionsDialog(
dialogType: dialogType,
context: context,
functions: functions,
uniqueCustomId: data['uniqueCustomId'],

View File

@ -6,7 +6,6 @@ import 'package:syncrow_web/pages/routines/widgets/routine_dialogs/gateway/gatew
final class GatewayHelper {
static Future<Map<String, dynamic>?> showGatewayFunctionsDialog({
required String dialogType,
required BuildContext context,
required List<DeviceFunction> functions,
required String? uniqueCustomId,