From d5c186a938a81f69e163dc8d8c79dd8507a687aa Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Tue, 2 Jan 2024 18:43:04 -0500 Subject: [PATCH] :bug: remove hardcoded custom label (#1648) Helps address https://issues.redhat.com/browse/MTA-1456 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 2c40a8c6c..65db4a7af 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 12bbf8ba7..9e7e5edab 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(),