Skip to content

Commit 6a0f107

Browse files
committed
chore: change multiple-row-object to table
1 parent f4ad618 commit 6a0f107

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

packages/backend/src/apps/m365-excel/__tests__/actions/get-table-rows-metadata.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('getTableRows getDataOutMetadata', () => {
7272
label: 'List of row(s) found',
7373
displayedValue: 'Preview 0 row(s)',
7474
order: 1,
75-
type: 'multiple-row-object',
75+
type: 'table',
7676
},
7777
})
7878
})
@@ -89,7 +89,7 @@ describe('getTableRows getDataOutMetadata', () => {
8989
label: 'List of row(s) found',
9090
displayedValue: 'Preview 2 row(s)',
9191
order: 1,
92-
type: 'multiple-row-object',
92+
type: 'table',
9393
},
9494
})
9595
})

packages/backend/src/apps/m365-excel/actions/get-table-rows/get-data-out-metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function getDataOutMetadata(
2020
data: {
2121
label: 'List of row(s) found',
2222
displayedValue: `Preview ${dataOut.rowsFound} row(s)`,
23-
type: 'multiple-row-object',
23+
type: 'table',
2424
order: 1,
2525
},
2626
}

packages/backend/src/apps/tiles/actions/find-multiple-rows/get-data-out-metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function getDataOutMetadata(
1616
data: {
1717
label: 'List of row(s) found',
1818
displayedValue: `Preview ${dataOut.rowsFound} row(s)`,
19-
type: 'multiple-row-object',
19+
type: 'table',
2020
order: 1,
2121
},
2222
rowsFound: {

packages/frontend/src/helpers/variables.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { RawColumn, RawRow } from '@/components/MultiRowResultVariables/utils'
1313
export const VISIBLE_VARIABLE_TYPES: TDataOutMetadatumType[] = [
1414
'text',
1515
'array',
16-
'multiple-row-object',
16+
'table',
1717
'tile_row_id',
1818
]
1919

@@ -130,7 +130,7 @@ const process = (
130130

131131
// special handling for multiple row objects from Tiles and M365 Excel
132132
// we do not do not join like strings as it contains objects and do not flatmap the data as we want to use it as a whole
133-
if (type === 'multiple-row-object') {
133+
if (type === 'table') {
134134
const { columns, rows } = data
135135
const outputVars = [
136136
{

packages/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export type TDataOutMetadatumType =
5757
| 'file'
5858
| 'array'
5959
| 'tile_row_id'
60-
| 'multiple-row-object'
60+
| 'table'
6161

6262
/**
6363
* This should only be defined on _leaf_ nodes (i.e. **primitive array

0 commit comments

Comments
 (0)