Skip to content

Commit

Permalink
Merge pull request #216 from takufunkai/fix-add-img-bug
Browse files Browse the repository at this point in the history
Fix bug where adding new images was not reflected
  • Loading branch information
glennljw authored Apr 11, 2022
2 parents 911b4cc + 5d2d85a commit 9acfbb3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public CommandResult execute(Model model) throws CommandException {
Person editedPerson = addImages(personToEdit, imagesToAdd);
model.setPerson(personToEdit, editedPerson);
model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);
model.setImagesToView(editedPerson.getImageDetailsList());
resultStringBuilder.append(String.format(ADD_IMAGE_SUCCESS, imagesToAdd.size(), editedPerson));

return new CommandResult(resultStringBuilder.toString(), VIEW_IMAGES);
Expand Down

0 comments on commit 9acfbb3

Please sign in to comment.