Skip to content

Commit

Permalink
Check for not none instead of truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinRiese committed Sep 19, 2023
1 parent 5fdf8d3 commit fbf3ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corehq/apps/app_manager/suite_xml/features/case_tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def build_case_tile_detail(self):
for column_info in self.detail_column_infos:
# column_info is an instance of DetailColumnInfo named tuple.
style = None
if column_info.column.grid_x or column_info.column.grid_y \
or column_info.column.height or column_info.column.width:
if column_info.column.grid_x is not None or column_info.column.grid_y is not None \
or column_info.column.height is not None or column_info.column.width is not None:
style = Style(grid_x=column_info.column.grid_x, grid_y=column_info.column.grid_y,
grid_height=column_info.column.height, grid_width=column_info.column.width,
horz_align=column_info.column.horizontal_align,
Expand Down

0 comments on commit fbf3ef1

Please sign in to comment.