diff --git a/ui/src/components/common/SlidingSidebar/partials/ISBUpdate/index.tsx b/ui/src/components/common/SlidingSidebar/partials/ISBUpdate/index.tsx index c72a1ead17..27ee27b6b7 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 05f155bdae..afd0f11cd9 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 1e6c1bb55f..ec920a2c75 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,