Skip to content

Commit

Permalink
fix reset predicate on view detail
Browse files Browse the repository at this point in the history
  • Loading branch information
hanscau committed Nov 10, 2024
1 parent 51a1558 commit 96c9483
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/seedu/eventtory/model/ModelManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ private Predicate<Vendor> evaluateVendorPredicate() {
return event != null && !isVendorAssignedToEvent(vendor, event);
};
return combinePredicates(notAssociatedPredicate, suppliedVendorFilterPredicate.getValue());
} else if (currentUiState.getValue().isVendorDetails()) {
return PREDICATE_SHOW_ALL_VENDORS;
}
return suppliedVendorFilterPredicate.getValue();
}
Expand All @@ -330,6 +332,8 @@ private Predicate<Event> evaluateEventPredicate() {
return vendor != null && !isVendorAssignedToEvent(vendor, event);
};
return combinePredicates(notAssociatedPredicate, suppliedEventFilterPredicate.getValue());
} else if (currentUiState.getValue().isEventDetails()) {
return PREDICATE_SHOW_ALL_EVENTS;
}
return suppliedEventFilterPredicate.getValue();
}
Expand Down

0 comments on commit 96c9483

Please sign in to comment.