Skip to content

Commit

Permalink
🐛 remove hardcoded custom label
Browse files Browse the repository at this point in the history
Signed-off-by: ibolton336 <[email protected]>
  • Loading branch information
ibolton336 committed Jan 2, 2024
1 parent da3c1bf commit bcb1f99
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 bcb1f99

Please sign in to comment.