Skip to content

Commit

Permalink
🐛 remove hardcoded custom label (#1648)
Browse files Browse the repository at this point in the history
Helps address https://issues.redhat.com/browse/MTA-1456

Signed-off-by: ibolton336 <[email protected]>
  • Loading branch information
ibolton336 authored Jan 2, 2024
1 parent da3c1bf commit d5c186a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ export const AnalysisWizard: React.FC<IAnalysisWizard> = ({

const { mode, withKnownLibs, hasExcludedPackages } = values;
const hasIncludedPackages = withKnownLibs.includes("select");

const setupTaskgroup = (
currentTaskgroup: Taskgroup,
fieldValues: AnalysisWizardFormValues
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export const CustomTargetForm: React.FC<CustomTargetFormProps> = ({
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(),
Expand Down

0 comments on commit d5c186a

Please sign in to comment.