Skip to content

Commit

Permalink
fix: full isb spec in edit (#1331)
Browse files Browse the repository at this point in the history
Signed-off-by: bbehnke <[email protected]>
(cherry picked from commit e928be3)
  • Loading branch information
bbehnke authored and whynowy committed Nov 3, 2023
1 parent 24a9466 commit 2307660
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export function ISBUpdate({
});
return;
}
setValidationPayload({ spec: { ...parsed } });
setValidationPayload(parsed);
setValidationMessage(undefined);
}, []);

Expand All @@ -170,7 +170,7 @@ export function ISBUpdate({
});
return;
}
setSubmitPayload({ spec: { ...parsed } });
setSubmitPayload(parsed);
setValidationMessage(undefined);
}, []);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2307660

Please sign in to comment.