Skip to content

Commit

Permalink
Merge pull request #278 from Siddardar/bug-fix-Update
Browse files Browse the repository at this point in the history
Fix not allowing update/tag after find
  • Loading branch information
foothaddeus authored Nov 11, 2024
2 parents cb3a1e5 + fb428cd commit add71d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/logic/commands/TagCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public TagCommand(Name nameToTag, UpdateStudentDescriptor tagsToAdd) {
public CommandResult execute(Model model) throws CommandException {
requireNonNull(model);

List<Student> lastShownList = model.getFilteredStudentList();
List<Student> lastShownList = model.getAddressBook().getStudentList();

Optional<Student> optionalStudentToTag = lastShownList.stream()
.filter(x -> x.getName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public UpdateCommand(Name name, UpdateStudentDescriptor updateStudentDescriptor)
@Override
public CommandResult execute(Model model) throws CommandException {
requireNonNull(model);
List<Student> lastShownList = model.getFilteredStudentList();
List<Student> lastShownList = model.getAddressBook().getStudentList();
if (name.fullName.isEmpty()) {
throw new CommandException(Messages.MESSAGE_INVALID_STUDENT_UPDATE);
}
Expand Down

0 comments on commit add71d8

Please sign in to comment.