From e52b34c709780575e1b5d01ddf72d0ffbc5f8dc9 Mon Sep 17 00:00:00 2001 From: smb2268 Date: Thu, 8 Feb 2024 11:21:52 -0500 Subject: [PATCH] fix(app): ensure protocol doesn't have stale status before analysis completion fix RQA-2297 --- app/src/organisms/ProtocolsLanding/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/organisms/ProtocolsLanding/utils.ts b/app/src/organisms/ProtocolsLanding/utils.ts index 4eb061fdae9..59ccfc2e852 100644 --- a/app/src/organisms/ProtocolsLanding/utils.ts +++ b/app/src/organisms/ProtocolsLanding/utils.ts @@ -10,7 +10,7 @@ export function getAnalysisStatus( ): AnalysisStatus { if (isAnalyzing) { return 'loading' - } else if (analysis?.liquids == null) { + } else if (analysis != null && analysis?.liquids == null) { return 'stale' } else if (analysis != null) { return analysis.errors.length > 0 ? 'error' : 'complete'