Skip to content

Commit

Permalink
Merge pull request #5187 from systeminit/z_index
Browse files Browse the repository at this point in the history
fix: must set z-index after view assignment
  • Loading branch information
sprutton1 authored Dec 20, 2024
2 parents 7a8bc8b + 9373a06 commit 72985ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/web/src/store/views.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,8 @@ export const useViewsStore = (forceChangeSetId?: ChangeSetId) => {
this.selectedViewId = id;
this.outlinerViewId = id;
this._enforceSelectedComponents();
this.setGroupZIndex();
this.viewAssignment(view);
this.setGroupZIndex();
} else {
const res = await this.FETCH_VIEW(id);
if (!res.result.success) {
Expand Down Expand Up @@ -736,8 +736,8 @@ export const useViewsStore = (forceChangeSetId?: ChangeSetId) => {
}
},
);
this.setGroupZIndex();
if (this.selectedViewId === view.id) this.viewAssignment(view);
this.setGroupZIndex();
},
});
},
Expand Down Expand Up @@ -829,8 +829,8 @@ export const useViewsStore = (forceChangeSetId?: ChangeSetId) => {
groups,
views,
});
this.setGroupZIndex();
this.selectView(response.view.id);
this.setGroupZIndex();
},
});
},
Expand Down

0 comments on commit 72985ba

Please sign in to comment.