Skip to content

Commit

Permalink
RavenDB-22631 NRE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kalczur authored and ppekrol committed Jul 29, 2024
1 parent c97b8cb commit d81c3f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export function useStudioSearchAsyncRegister(props: UseStudioSearchAsyncRegister
{
onSuccess: (results) => {
// When previous and current results are empty do nothing
if (results.length === 0 && asyncGetDocuments.result.length === 0) {
if (results?.length === 0 && asyncGetDocuments.result?.length === 0) {
return;
}

Expand Down

0 comments on commit d81c3f2

Please sign in to comment.