From 9005a91d17fe5b324a0a49492dbd204cc775b1d1 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Sat, 20 Jul 2019 18:08:29 -0600 Subject: [PATCH] Fix programpage close behavior --- client/pages/ProgramPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/pages/ProgramPage.tsx b/client/pages/ProgramPage.tsx index 168468b..4eba381 100644 --- a/client/pages/ProgramPage.tsx +++ b/client/pages/ProgramPage.tsx @@ -252,8 +252,8 @@ class ProgramPage extends React.Component { @action.bound private close() { - // this.props.history.goBack(); - this.props.appState.history.goBack(); + const { deviceId } = this.props.match.params; + this.props.history.push({ pathname: route.device(deviceId), search: "" }); } @action.bound