Update: When clicking on a page in the entity explorer, the canvas of the page opens (#288)
This commit is contained in:
parent
68e048761a
commit
38afc64a5d
|
|
@ -24,7 +24,7 @@ type ExplorerPageEntityProps = {
|
|||
export const ExplorerPageEntity = memo((props: ExplorerPageEntityProps) => {
|
||||
const params = useParams<ExplorerURLParams>();
|
||||
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]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user