catalog-import: stop trying to register optional locations

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-02-18 15:24:13 +01:00
parent c4760992a5
commit 9d98865cb1
2 changed files with 5 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-import': patch
---
No longer attempt to register locations as optional, since it's ignored.
@@ -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,