diff --git a/plugins/techdocs/api-report-alpha.md b/plugins/techdocs/api-report-alpha.md index ce48a15e3d..dfe5dc2cc2 100644 --- a/plugins/techdocs/api-report-alpha.md +++ b/plugins/techdocs/api-report-alpha.md @@ -230,7 +230,9 @@ const _default: FrontendPlugin< output: ConfigurableExtensionDataRef< React_2.JSX.Element, 'core.reactElement', - {} + { + optional: true; + } >; inputs: { [x: string]: ExtensionInput< diff --git a/plugins/techdocs/src/alpha.tsx b/plugins/techdocs/src/alpha.tsx index f443ebea02..260909e007 100644 --- a/plugins/techdocs/src/alpha.tsx +++ b/plugins/techdocs/src/alpha.tsx @@ -37,9 +37,7 @@ import { convertLegacyRouteRefs, } from '@backstage/core-compat-api'; import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha'; -import { MissingAnnotationEmptyState } from '@backstage/plugin-catalog-react'; import { SearchResultListItemBlueprint } from '@backstage/plugin-search-react/alpha'; -import { TECHDOCS_ANNOTATION } from '@backstage/plugin-techdocs-common'; import { techdocsApiRef, techdocsStorageApiRef, @@ -189,12 +187,8 @@ const TechDocsEntityContentEmptyState = createExtension({ kind: 'empty-state', name: 'entity-content', attachTo: { id: 'entity-content:techdocs', input: 'emptyState' }, - output: [coreExtensionData.reactElement], - factory: () => [ - coreExtensionData.reactElement( - , - ), - ], + output: [coreExtensionData.reactElement.optional()], + factory: () => [], }); /** @alpha */