Skip to content

Commit

Permalink
re-use updatesModel
Browse files Browse the repository at this point in the history
  • Loading branch information
d-loose committed Aug 15, 2023
1 parent e32897b commit 38df7a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/src/manage/manage_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ class _ActionButtons extends ConsumerWidget {
mainAxisSize: MainAxisSize.min,
children: [
PushButton.outlined(
onPressed: updatesModel.activeChangeId != null
? null
: ref.read(updatesModelProvider).refresh,
onPressed:
updatesModel.activeChangeId != null ? null : updatesModel.refresh,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Expand Down

0 comments on commit 38df7a4

Please sign in to comment.