Fix bug when checking for empty list

Co-authored-by: kvid <kvid@users.noreply.github.com>
This commit is contained in:
Daniel Rojas 2021-08-29 11:02:49 +02:00 committed by GitHub
parent 2e56f82988
commit a30d26e6af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ def component_table_entry(
output = (f'{qty}'
+ (f' {unit}' if unit else '')
+ f' x {type}'
+ ('<br/>' if any([part_number_list]) else '')
+ ('<br/>' if any(part_number_list) else '')
+ (', '.join([x for x in part_number_list if x])))
# format the above output as left aligned text in a single visible cell
# indent is set to two to match the indent in the generated html table