Skip to content

Commit 1325e96

Browse files
authored
[Platform]: SSP Table - pass the correct query object (#679)
1 parent 46d9357 commit 1325e96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/ui/src/components/OtTable/OtTableSSP.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ function OtTableSSP({
241241
return <>{flexRender(cell.column.columnDef.cell, cell.getContext())}</>;
242242
}
243243

244+
const playgroundVariables = { ...variables, cursor: null, size: 10 };
245+
244246
return (
245247
<div>
246248
{/* Global Search */}
@@ -263,8 +265,8 @@ function OtTableSSP({
263265
columns={dataDownloaderColumns || columns}
264266
rows={getWholeDataset}
265267
fileStem={dataDownloaderFileStem}
266-
query={query}
267-
variables={variables}
268+
query={query.loc.source.body}
269+
variables={playgroundVariables}
268270
/>
269271
)}
270272
</Grid>

0 commit comments

Comments
 (0)