Skip to content

Commit

Permalink
Merge pull request #5179 from systeminit/fix/BUG-724-need-to-reset-cu…
Browse files Browse the repository at this point in the history
…rrent-view

BUG-724: need to also set the current view
  • Loading branch information
jobelenus authored Dec 20, 2024
2 parents 6910be4 + 412dced commit 34585a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/web/src/store/change_sets.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,6 @@ export function useChangeSetsStore() {
{
eventType: "ChangeSetApplied",
callback: (data) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const { changeSetId, userPk, toRebaseChangeSetId } = data;
const changeSet = this.changeSetsById[changeSetId];
if (changeSet) {
Expand Down
6 changes: 6 additions & 0 deletions app/web/src/store/views.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,12 @@ export const useViewsStore = (forceChangeSetId?: ChangeSetId) => {
},
);
this.setGroupZIndex();

if (this.selectedViewId === view.id) {
this.components = view.components;
this.groups = view.groups;
this.viewNodes = view.viewNodes;
}
},
});
},
Expand Down

0 comments on commit 34585a3

Please sign in to comment.