Skip to content

Commit

Permalink
Merge pull request #281 from terminusdb/add-change-request-optional
Browse files Browse the repository at this point in the history
Add change request optional
  • Loading branch information
KittyJose committed Jul 13, 2023
2 parents 1ba36d3 + 99a0c11 commit beb1f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tdb-dashboard/src/hooks/useOpenAI.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function useOpenAI(){
const branchQuery = branch ? `&branch=${branch}` : ''
const url = `${getUrl('indexes')}?limit=${limit}${statusQuery}${branchQuery}`
const result = await woqlClient.sendCustomRequest("GET", url)
if(result && result.bindings){
if(result && result.bindings && result.bindings.length>0){
setSearchableCommit(result.bindings)
}
}catch (err){
Expand Down

0 comments on commit beb1f4a

Please sign in to comment.