diff --git a/backend/antigenapi/views_old.py b/backend/antigenapi/views_old.py index d90f91d..d82ccce 100644 --- a/backend/antigenapi/views_old.py +++ b/backend/antigenapi/views_old.py @@ -1064,7 +1064,7 @@ def get_blast_sequencing_run(self, request, pk): """BLAST sequencing run vs database.""" blast_str = run_blastp(pk) if not blast_str: - return JsonResponse({}, status=status.HTTP_404_NOT_FOUND) + return JsonResponse({"hits": []}, status=status.HTTP_404_NOT_FOUND) # Read query AIRR files for CDRs results = SequencingRunResults.objects.filter(sequencing_run_id=int(pk)) diff --git a/frontend/src/crudtemplates/BlastResults.js b/frontend/src/crudtemplates/BlastResults.js index 045e9d2..51076d4 100644 --- a/frontend/src/crudtemplates/BlastResults.js +++ b/frontend/src/crudtemplates/BlastResults.js @@ -103,6 +103,13 @@ const BlastResults = (props) => { + {!blastResults.hits.length && ( + + + No results + + + )} {blastResults.hits.map((row, rowIdx, arr) => ( { + {!sequencingResults.records.length && ( + + + No results + + + )} {sequencingResults.records.map((row) => (