(core) Disable SelectionSummary when diffing documents

Summary:
Cell values can't be summarized if they are diffs of two different
document versions. This was causing a JS error to be thrown when
comparing snapshots.

Test Plan: Browser test.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D4292
pull/1112/head
George Gevoian 2 months ago
parent d922bdbb2d
commit b5e0e020ef

@ -96,8 +96,7 @@ function GridView(gristDoc, viewSectionModel, isPreview = false) {
this.cellSelector = selector.CellSelector.create(this, this); this.cellSelector = selector.CellSelector.create(this, this);
if (!isPreview) { if (!isPreview && !this.gristDoc.comparison) {
// Disable summaries in import previews, for now.
this.selectionSummary = SelectionSummary.create(this, this.selectionSummary = SelectionSummary.create(this,
this.cellSelector, this.tableModel.tableData, this.sortedRows, this.viewSection.viewFields); this.cellSelector, this.tableModel.tableData, this.sortedRows, this.viewSection.viewFields);
} }

Loading…
Cancel
Save