Skip to content

Commit a3fe891

Browse files
lokanandaprabhuvikram-raj
authored andcommitted
Resolved loading issue when negative response from TR
1 parent 7f2dc0e commit a3fe891

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/hooks/useTaskRuns.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export const useRuns = <Kind extends K8sResourceCommon>(
285285
: runs || trResources;
286286
return [
287287
rResources,
288-
!!rResources?.[0] || (loaded && trLoaded),
288+
!!(rResources?.[0] || (loaded && (trLoaded || trError))),
289289
namespace
290290
? queryTr
291291
? isList

src/components/start-pipeline/validation-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const commonPipelineSchema = () =>
148148
default: yup.mixed(),
149149
description: yup.string(),
150150
value: yup.mixed().when('type', ([type], schema, context) => {
151-
const parent = context?.parent;
151+
const parent = (context as any)?.from?.[0]?.value || context?.parent;
152152
if (type === 'array') {
153153
return yup
154154
.array()

0 commit comments

Comments
 (0)