(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
This commit is contained in:
George Gevoian 2024-07-14 22:37:10 -04:00
parent d922bdbb2d
commit b5e0e020ef

View File

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