Skip to content

Commit beb1f4a

Browse files
authored
Merge pull request #281 from terminusdb/add-change-request-optional
Add change request optional
2 parents 1ba36d3 + 99a0c11 commit beb1f4a

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)