From 01ccf05e5080459341e31156facd9906312576b2 Mon Sep 17 00:00:00 2001 From: Michael Davie Date: Tue, 24 Sep 2024 11:22:11 -0400 Subject: [PATCH] fix(profile-resolve):handle unspecified aggregate parameters Signed-off-by: Michael Davie --- trestle/core/control_interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trestle/core/control_interface.py b/trestle/core/control_interface.py index 4e92c2bfc..1a2642d20 100644 --- a/trestle/core/control_interface.py +++ b/trestle/core/control_interface.py @@ -713,7 +713,8 @@ def _param_values_assignment_str( param_str = ControlInterface._param_selection_as_str(param, True, False) # otherwise use param aggregated values if present if not param_str: - param_str = ControlInterface._param_as_aggregated_value(param, param_dict, True, False) + if any(as_list(param_dict[prop.value].values) for prop in as_list(param.props) if prop.value in param_dict): + param_str = ControlInterface._param_as_aggregated_value(param, param_dict, True, False) # finally use label and param_id as fallbacks if not param_str: param_str = param.label if param.label else param.id