Skip to content

Commit 99a0c11

Browse files
committed
check result
1 parent 8e01745 commit 99a0c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function useOpenAI(){
7979
const branchQuery = branch ? `&branch=${branch}` : ''
8080
const url = `${getUrl('indexes')}?limit=${limit}${statusQuery}${branchQuery}`
8181
const result = await woqlClient.sendCustomRequest("GET", url)
82-
if(result && result.bindings){
82+
if(result && result.bindings && result.bindings.length>0){
8383
setSearchableCommit(result.bindings)
8484
}
8585
}catch (err){

0 commit comments

Comments
 (0)