Skip to content

Commit

Permalink
Fix: add successtoast
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderleegs committed Apr 29, 2021
1 parent 6ad1ba3 commit ba2f930
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/layouts/Folders.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ const Folders = ({ match, location }) => {
errorToast(`The page data could not be retrieved. ${DEFAULT_RETRY_MSG}`)
},
onSuccess: () => {
successToast(`Successfully updated ${isSelectedItemPage ? 'file' : 'subfolder'}`)
queryClient.invalidateQueries([DIR_CONTENT_KEY, siteName, folderName])
refetchFolderContents()
},
Expand Down

0 comments on commit ba2f930

Please sign in to comment.