aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/DataVizBox/DataVizBox.tsx2
-rw-r--r--src/client/views/nodes/DataVizBox/components/TableBox.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DataVizBox/DataVizBox.tsx b/src/client/views/nodes/DataVizBox/DataVizBox.tsx
index 56c130e0f..e8e46edbc 100644
--- a/src/client/views/nodes/DataVizBox/DataVizBox.tsx
+++ b/src/client/views/nodes/DataVizBox/DataVizBox.tsx
@@ -331,7 +331,7 @@ export class DataVizBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
if (!keys) return;
const children = DocListCast(getFrom[Doc.LayoutFieldKey(getFrom)]);
var current: {[key: string]: string}[] = []
- for (let i=1; i<children.length; i++){
+ for (let i=0; i<children.length; i++){
var row: {[key:string]: string} = {};
if (children[i]){
for (let j=0; j<keys.length; j++){
diff --git a/src/client/views/nodes/DataVizBox/components/TableBox.tsx b/src/client/views/nodes/DataVizBox/components/TableBox.tsx
index 16e66d0c3..4f60a156b 100644
--- a/src/client/views/nodes/DataVizBox/components/TableBox.tsx
+++ b/src/client/views/nodes/DataVizBox/components/TableBox.tsx
@@ -226,7 +226,7 @@ export class TableBox extends ObservableReactComponent<TableBoxProps> {
</thead>
<tbody>
{this._tableDataIds
- .filter((rowId, i) => this.startID <= i && i <= this.endID)
+ .filter((rowId, i) => this.startID-2 <= i && i <= this.endID+2)
?.map(rowId => (
<tr
key={rowId}