From dcafa96b5b23fb13431dc8abb2945391e53a7d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Sadzi=C5=84ski?= Date: Tue, 26 Apr 2022 14:13:16 +0200 Subject: [PATCH] (core) Restoring context menu when comparing documents Summary: Fixing bug when comparing documents. User wasn't able to open cell/column context menu due to javascript error. Test Plan: Updated tests Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3397 --- app/client/models/DataTableModelWithDiff.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/client/models/DataTableModelWithDiff.ts b/app/client/models/DataTableModelWithDiff.ts index a867dba2..1459a71e 100644 --- a/app/client/models/DataTableModelWithDiff.ts +++ b/app/client/models/DataTableModelWithDiff.ts @@ -261,6 +261,10 @@ export class TableDataWithDiff { return this.core.getValue(rowId, colId); } public get tableId() { return this.core.tableId; } + + public numRecords() { + return this.core.numRecords(); + } } /**