fix: App sidebar context switching with page (#29615)

Fixes a context switching issue where app sidebar navigation does not
retain the current page canvas

fixes #29614

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Improved the context switching mechanism to include page-specific
data, enhancing the app's responsiveness and accuracy when users switch
between different contexts.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Hetu Nandu 2023-12-14 16:29:36 +05:30 committed by GitHub
parent 0c4586a64c
commit 62913aea25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,7 +260,7 @@ function* getEntitiesForSet(
state?.invokedBy === NavigationMethod.AppSidebar
) {
const currentAppId: string = yield select(getCurrentApplicationId);
const key = `${currentEntityInfo.appState}.${currentAppId}#${branch}`;
const key = `${currentEntityInfo.appState}.${currentAppId}.${currentEntityInfo.pageId}#${branch}`;
entities.push({
key,
entityInfo: {