diff --git a/ui/src/components/common/SlidingSidebar/partials/ISBUpdate/index.tsx b/ui/src/components/common/SlidingSidebar/partials/ISBUpdate/index.tsx index c72a1ead1..27ee27b6b 100644 --- a/ui/src/components/common/SlidingSidebar/partials/ISBUpdate/index.tsx +++ b/ui/src/components/common/SlidingSidebar/partials/ISBUpdate/index.tsx @@ -148,7 +148,7 @@ export function ISBUpdate({ }); return; } - setValidationPayload({ spec: { ...parsed } }); + setValidationPayload(parsed); setValidationMessage(undefined); }, []); @@ -170,7 +170,7 @@ export function ISBUpdate({ }); return; } - setSubmitPayload({ spec: { ...parsed } }); + setSubmitPayload(parsed); setValidationMessage(undefined); }, []); diff --git a/ui/src/components/pages/Namespace/partials/NamespacePipelineListing/ISBServiceCard/ISBServiceCard.tsx b/ui/src/components/pages/Namespace/partials/NamespacePipelineListing/ISBServiceCard/ISBServiceCard.tsx index 05f155bda..afd0f11cd 100644 --- a/ui/src/components/pages/Namespace/partials/NamespacePipelineListing/ISBServiceCard/ISBServiceCard.tsx +++ b/ui/src/components/pages/Namespace/partials/NamespacePipelineListing/ISBServiceCard/ISBServiceCard.tsx @@ -48,7 +48,7 @@ export function ISBServiceCard({ setSidebarProps({ type: SidebarType.ISB_UPDATE, specEditorProps: { - initialYaml: data?.isbService?.spec, + initialYaml: data?.isbService, namespaceId: namespace, isbId: data?.name, viewType: ViewType.EDIT, diff --git a/ui/src/components/pages/Namespace/partials/PipelineCard/index.tsx b/ui/src/components/pages/Namespace/partials/PipelineCard/index.tsx index 1e6c1bb55..ec920a2c7 100644 --- a/ui/src/components/pages/Namespace/partials/PipelineCard/index.tsx +++ b/ui/src/components/pages/Namespace/partials/PipelineCard/index.tsx @@ -100,7 +100,7 @@ export function PipelineCard({ setSidebarProps({ type: SidebarType.ISB_UPDATE, specEditorProps: { - initialYaml: isbData?.isbService?.spec, + initialYaml: isbData?.isbService, namespaceId: namespace, isbId: isbData?.name, viewType: ViewType.EDIT,