diff --git a/packages/builder/src/components/integration/QueryViewerSidePanel/PreviewPanel.svelte b/packages/builder/src/components/integration/QueryViewerSidePanel/PreviewPanel.svelte index 7a57ae3009..29f15bca40 100644 --- a/packages/builder/src/components/integration/QueryViewerSidePanel/PreviewPanel.svelte +++ b/packages/builder/src/components/integration/QueryViewerSidePanel/PreviewPanel.svelte @@ -7,20 +7,10 @@ export let maxRowsToDisplay = 5 let rowsToDisplay - $: { - rowsToDisplay = [ - ...cloneDeep(rows).slice(0, maxRowsToDisplay), - // { [Object.keys(schema)[0]]: "1" }, - ] + $: rowsToDisplay = [...cloneDeep(rows).slice(0, maxRowsToDisplay)] + + $: additionalRows = rows.length - maxRowsToDisplay - if (rows.length - maxRowsToDisplay) { - rowsToDisplay.push({ - [Object.keys(schema)[0]]: `...${ - rows.length - maxRowsToDisplay - } further items`, - }) - } - } // Cast field in query preview response to number if specified by schema $: { for (let i = 0; i < rowsToDisplay.length; i++) { @@ -38,10 +28,26 @@