Skip to content

Commit

Permalink
fix(app): actually disable expansion if drug activity changeable
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Jan 14, 2025
1 parent 1cb5e5f commit 14138ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/common/widgets/drug_list/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class DrugList extends HookWidget {
useLine: false,
);
final currentlyExpanded = otherDrugsExpanded.value ?? false;
final currentlyEnabled = filter.query.isBlank;
final currentlyEnabled = !drugActivityChangeable && filter.query.isBlank;
final drugLists = [
if (activeDrugsList != null) ...[
ListTile(
Expand Down

0 comments on commit 14138ae

Please sign in to comment.