mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(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:
parent
d922bdbb2d
commit
b5e0e020ef
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user