Skip to content

Commit 8e3c492

Browse files
Merge pull request #831 from openshift-cherrypick-robot/cherry-pick-828-to-release-v1.21.x
[release-v1.21.x] SRVKP-9450: preserve error state for all-namespace for the case when there is an error for non-admin users for pipelineruns
2 parents bfb3e96 + fc9f570 commit 8e3c492

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/hooks/useTaskRuns.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ export const useRuns = <Kind extends K8sResourceCommon>(
315315
: // when searching by name, return an error if we have no result
316316
trError && (trLoaded && !trResources.length ? error : undefined)
317317
: error
318+
: error
319+
? error
318320
: undefined,
319321
trGetNextPage,
320322
];

0 commit comments

Comments
 (0)