mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Undo bug with summary table and raw data view
Summary: Clicking undo/redo after converting a table to a summary table navigated to the raw data view. Test Plan: new test Reviewers: georgegevoian, alexmojaki Reviewed By: georgegevoian, alexmojaki Subscribers: alexmojaki Differential Revision: https://phab.getgrist.com/D3337
This commit is contained in:
@@ -924,12 +924,12 @@ export class GristDoc extends DisposableWithEvents {
|
||||
*/
|
||||
private async _switchToSectionId(sectionId: number) {
|
||||
const section: ViewSectionRec = this.docModel.viewSections.getRowModel(sectionId);
|
||||
const view: ViewRec = section.view.peek();
|
||||
if (!view.id.peek()) {
|
||||
if (section.isRaw.peek()) {
|
||||
// This is raw data view
|
||||
await urlState().pushUrl({docPage: 'data'});
|
||||
this.viewModel.activeSectionId(sectionId);
|
||||
} else {
|
||||
const view: ViewRec = section.view.peek();
|
||||
await this.openDocPage(view.getRowId());
|
||||
view.activeSectionId(sectionId); // this.viewModel will reflect this with a delay.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user