Skip to content

Commit

Permalink
fix missing device filter for favorites call
Browse files Browse the repository at this point in the history
  • Loading branch information
zsco committed Apr 19, 2024
1 parent 8842829 commit 2981c1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/widgets/tabs/device_tabs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ class DeviceTabsState extends State<DeviceTabs> with RestorationMixin {
switch (selectedIndex) {
case tabFavorites:
hideSearch = false;
filter.favorites = true;
AppState().searchDevices(filter, context);
filter.favorites = false;
showFab = false;
break;
case tabDashboard:
Expand Down
3 changes: 1 addition & 2 deletions lib/widgets/tabs/favorites/favorites.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ class _DeviceListFavoritesState extends State<DeviceListFavorites> with WidgetsB

_openFavorites(BuildContext context) {
final parentState = context.findAncestorStateOfType<State<DeviceTabs>>() as DeviceTabsState?;
//TODO: Why is this here?
//parentState?.switchScreen(6, true);
parentState?.switchScreen(6, true);
}

@override
Expand Down

0 comments on commit 2981c1a

Please sign in to comment.