Merge pull request #21471 from backstage/rugvip/node
frontend-plugin-api: change extension factory to receive app node instead of id and source
This commit is contained in:
@@ -107,7 +107,7 @@ export function createSearchResultListItemExtension<
|
||||
output: {
|
||||
item: searchResultItemExtensionData,
|
||||
},
|
||||
factory({ config, source }) {
|
||||
factory({ config, node }) {
|
||||
const ExtensionComponent = lazy(() =>
|
||||
options
|
||||
.component({ config })
|
||||
@@ -118,7 +118,7 @@ export function createSearchResultListItemExtension<
|
||||
item: {
|
||||
predicate: options.predicate,
|
||||
component: props => (
|
||||
<ExtensionBoundary id={id} source={source}>
|
||||
<ExtensionBoundary node={node}>
|
||||
<SearchResultListItemExtension
|
||||
rank={props.rank}
|
||||
result={props.result}
|
||||
|
||||
Reference in New Issue
Block a user