Skip to content

Commit

Permalink
fix: stay on current env after deleting doc (pinterest#1138)
Browse files Browse the repository at this point in the history
Co-authored-by: Lily Li <[email protected]>
  • Loading branch information
2 people authored and aidenprice committed Jan 3, 2024
1 parent 3662ff5 commit f62fe25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const DeleteDataDocButton: React.FunctionComponent<
});
toast.promise(
dispatch(dataDocActions.deleteDataDoc(docId)).then(() =>
navigateWithinEnv('/datadoc/')
navigateWithinEnv('/')
),
{
loading: 'Deleting DataDoc...',
Expand Down

0 comments on commit f62fe25

Please sign in to comment.