fix(catalog): read correct property name implementsApis

This commit is contained in:
Dominik Henneke
2020-08-14 14:05:30 +02:00
parent 5374dcdb5d
commit f8c3a77062
2 changed files with 3 additions and 3 deletions
@@ -7,7 +7,7 @@ spec:
type: service
lifecycle: experimental
owner: pets@example.com
implementedApis:
implementsApis:
- petstore
- streetlights
- hello-world
@@ -28,7 +28,7 @@ export const EntityPageApi: FC<{ entity: Entity }> = ({ entity }) => {
const { value: apiEntities, loading } = useAsync(async () => {
const a = await Promise.all(
((entity?.spec?.implementedApis as string[]) || []).map(api =>
((entity?.spec?.implementsApis as string[]) || []).map(api =>
catalogApi.getEntityByName({
kind: 'API',
name: api,
@@ -48,7 +48,7 @@ export const EntityPageApi: FC<{ entity: Entity }> = ({ entity }) => {
{loading && <Progress />}
{!loading && (
<Grid container spacing={3}>
{((entity?.spec?.implementedApis as string[]) || []).map(api => {
{((entity?.spec?.implementsApis as string[]) || []).map(api => {
const apiEntity = apiEntities && apiEntities.get(api);
return (