diff --git a/src/aiidalab_qe/app/submission/model.py b/src/aiidalab_qe/app/submission/model.py index 933b20fea..ed0f25a47 100644 --- a/src/aiidalab_qe/app/submission/model.py +++ b/src/aiidalab_qe/app/submission/model.py @@ -122,9 +122,8 @@ def update_process_label(self): protocol_and_magnetic_info, soc_info, ] - label = ( - f"{structure_label} [{', '.join(label_details)}] {properties_info}".strip() - ) + filtered_label_details = [detail for detail in label_details if detail] + label = f"{structure_label} [{', '.join(filtered_label_details)}] {properties_info}".strip() self.process_label = label