From f3569f5b6d7831899f193f81eadfe41f18658f0a Mon Sep 17 00:00:00 2001 From: Abhi Date: Mon, 1 Apr 2024 16:30:56 +0530 Subject: [PATCH] fix(testpipeline): remove commits from filter --- src/hooks/useSnapshots.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useSnapshots.ts b/src/hooks/useSnapshots.ts index 76c10db76..1b81c7f24 100644 --- a/src/hooks/useSnapshots.ts +++ b/src/hooks/useSnapshots.ts @@ -15,7 +15,7 @@ export const useSnapshots = ( }); return React.useMemo( () => [ - loaded && !error + loaded && !error && commit ? snapshots.filter( (snapshot) => snapshot.metadata.labels?.[PipelineRunLabel.TEST_SERVICE_COMMIT] === commit ||