Skip to content

Commit

Permalink
removed redundant getFolders call
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleCardwell committed Oct 2, 2024
1 parent 5d4b461 commit 2a2c4fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/applications/mhv-secure-messaging/containers/Folders.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ const Folders = () => {
};

const confirmFolderCreate = (folderName, closeNewModal) => {
dispatch(newFolder(folderName))
.then(dispatch(getFolders()))
.finally(closeNewModal());
dispatch(newFolder(folderName)).then(closeNewModal());
};

const content = () => {
Expand Down

0 comments on commit 2a2c4fa

Please sign in to comment.