From 38afc64a5d443aa50919eba574ce60083aa3829c Mon Sep 17 00:00:00 2001 From: Abhinav Jha Date: Wed, 12 Aug 2020 18:00:07 +0530 Subject: [PATCH] Update: When clicking on a page in the entity explorer, the canvas of the page opens (#288) --- app/client/src/pages/Editor/Explorer/Pages/PageEntity.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/pages/Editor/Explorer/Pages/PageEntity.tsx b/app/client/src/pages/Editor/Explorer/Pages/PageEntity.tsx index dfe928945a..7f39281efa 100644 --- a/app/client/src/pages/Editor/Explorer/Pages/PageEntity.tsx +++ b/app/client/src/pages/Editor/Explorer/Pages/PageEntity.tsx @@ -24,7 +24,7 @@ type ExplorerPageEntityProps = { export const ExplorerPageEntity = memo((props: ExplorerPageEntityProps) => { const params = useParams(); const switchPage = useCallback(() => { - if (!props.isCurrentPage && !!params.applicationId) { + if (!!params.applicationId) { history.push(BUILDER_PAGE_URL(params.applicationId, props.page.pageId)); } }, [props.isCurrentPage, props.page.pageId, params.applicationId]);