From 9d98865cb150c6e87a0de30c3408ed9d6fffeab5 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 18 Feb 2022 15:24:13 +0100 Subject: [PATCH] catalog-import: stop trying to register optional locations Signed-off-by: Patrik Oldsberg --- .changeset/yellow-boxes-jump.md | 5 +++++ .../src/components/StepReviewLocation/StepReviewLocation.tsx | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changeset/yellow-boxes-jump.md diff --git a/.changeset/yellow-boxes-jump.md b/.changeset/yellow-boxes-jump.md new file mode 100644 index 0000000000..4764c9c5fe --- /dev/null +++ b/.changeset/yellow-boxes-jump.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-import': patch +--- + +No longer attempt to register locations as optional, since it's ignored. diff --git a/plugins/catalog-import/src/components/StepReviewLocation/StepReviewLocation.tsx b/plugins/catalog-import/src/components/StepReviewLocation/StepReviewLocation.tsx index 5c4f9b9594..7943b6e3b8 100644 --- a/plugins/catalog-import/src/components/StepReviewLocation/StepReviewLocation.tsx +++ b/plugins/catalog-import/src/components/StepReviewLocation/StepReviewLocation.tsx @@ -73,8 +73,6 @@ export const StepReviewLocation = ({ const result = await catalogApi.addLocation({ type: 'url', target: l.target, - presence: - prepareResult.type === 'repository' ? 'optional' : 'required', }); return { target: result.location.target,