Merge pull request #30345 from dingledorf/patch-2

Fix Error Message in StepInitAnalyzeUrl.tsx
This commit is contained in:
Fredrik Adelöw
2025-06-23 16:37:19 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-import': patch
---
Fixed bug with error message since ResponseError is now thrown from CatalogClient
@@ -130,7 +130,7 @@ export const StepInitAnalyzeUrl = (props: StepInitAnalyzeUrlProps) => {
}
}
} catch (e: any) {
setError(e?.data?.error?.message ?? e.message);
setError(e?.body?.error?.message ?? e.message);
setSubmitted(false);
}
},