From bcb1f99db8bb84c5dda67d9dfb19596b48295005 Mon Sep 17 00:00:00 2001 From: ibolton336 Date: Tue, 2 Jan 2024 14:49:52 -0500 Subject: [PATCH] :bug: remove hardcoded custom label Signed-off-by: ibolton336 --- .../app/pages/applications/analysis-wizard/analysis-wizard.tsx | 1 - .../pages/migration-targets/components/custom-target-form.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/app/pages/applications/analysis-wizard/analysis-wizard.tsx b/client/src/app/pages/applications/analysis-wizard/analysis-wizard.tsx index 2c40a8c6c0..65db4a7afe 100644 --- a/client/src/app/pages/applications/analysis-wizard/analysis-wizard.tsx +++ b/client/src/app/pages/applications/analysis-wizard/analysis-wizard.tsx @@ -216,7 +216,6 @@ export const AnalysisWizard: React.FC = ({ const { mode, withKnownLibs, hasExcludedPackages } = values; const hasIncludedPackages = withKnownLibs.includes("select"); - const setupTaskgroup = ( currentTaskgroup: Taskgroup, fieldValues: AnalysisWizardFormValues diff --git a/client/src/app/pages/migration-targets/components/custom-target-form.tsx b/client/src/app/pages/migration-targets/components/custom-target-form.tsx index 12bbf8ba7f..9e7e5edab5 100644 --- a/client/src/app/pages/migration-targets/components/custom-target-form.tsx +++ b/client/src/app/pages/migration-targets/components/custom-target-form.tsx @@ -285,7 +285,7 @@ export const CustomTargetForm: React.FC = ({ description: formValues?.description?.trim() || "", ...(formValues.imageID && { image: { id: formValues.imageID } }), custom: true, - labels: labels.length ? labels : [{ name: "custom", label: "custom" }], + labels: labels.length ? labels : [], ruleset: { id: target && target.custom ? target.ruleset.id : undefined, name: formValues.name.trim(),