Skip to content

Commit 489d51e

Browse files
committed
limit the preview result
1 parent ba1591e commit 489d51e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/tdb-dashboard/src/hooks/useOpenAI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export function useOpenAI(){
307307
}
308308
setLoading(true)
309309
const query = gql(`${queryWithLimit}`)
310-
const result = await apolloClient.query({query:query,variables:{limit:5,offset:0}})
310+
const result = await apolloClient.query({query:query,variables:{limit:10,offset:0}})
311311

312312
if(result.errors){
313313
setError(result.errors)

packages/tdb-dashboard/src/pages/GraphqlHandlerbarsPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function GraphqlHandlerbarsPage({}) {
135135
<Card className="h-100">
136136
<Card.Header className="bg-transparent">
137137
<Stack direction="horizontal" gap={1}>
138-
Preview
138+
Preview - showing only the first 10 results
139139
<CopyButton text={queryResultPreviewString} title="Copy result obj" css={"ml-auto btn btn-md bg-light text-dark float-right"}/>
140140
</Stack>
141141
</Card.Header>

0 commit comments

Comments
 (0)