From be84a7c2cfaabe8636851335da987aa7f9993a6d Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Wed, 15 Apr 2020 11:41:53 -0300 Subject: [PATCH] Use correct `history` object on Permissions Connect page (#8338) The browser global `history` was being used here instead of the React Router `history` object. This was accidentally broken when refactoring in #8269 --- .../pages/permissions-connect/permissions-connect.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/pages/permissions-connect/permissions-connect.component.js b/ui/app/pages/permissions-connect/permissions-connect.component.js index 3de6f9377..82f07f8cb 100644 --- a/ui/app/pages/permissions-connect/permissions-connect.component.js +++ b/ui/app/pages/permissions-connect/permissions-connect.component.js @@ -140,7 +140,7 @@ export default class PermissionConnect extends Component { } cancelPermissionsRequest = async (requestId) => { - const { rejectPermissionsRequest } = this.props + const { history, rejectPermissionsRequest } = this.props if (requestId) { await rejectPermissionsRequest(requestId)