Skip to content

Commit

Permalink
fixed uncheck all bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamOdero committed Nov 30, 2023
1 parent 4beed8d commit 71af730
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/astra/frontend/telemetry_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def refresh_data_table(self) -> None:
This method wipes the data from the dashboard table and re-inserts
the new values
"""
if self.controller.get_table_entries():
if self.controller.get_table_entries() is not None:
self.change_frame_navigation_text()
for item in self.dashboard_table.get_children():
self.dashboard_table.delete(item)
Expand Down
4 changes: 2 additions & 2 deletions src/astra/usecase/request_receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,13 @@ def load_file(cls, file: str, dm: DataManager) -> None:
"""

@classmethod
def get_table_entries(cls) -> list[list]:
def get_table_entries(cls) -> list[list] | None:
"""
Returns the table entries from the previous call to <create> or <update>
:return: the table entries from the previous call to <create> or <update>
"""
if cls.previous_data is None:
return []
return None
else:
return cls.previous_data.table

0 comments on commit 71af730

Please sign in to comment.