Merge branch 'feature/tree-item-extension-point' of https://github.com/umbraco/Umbraco.CMS.Backoffice into feature/tree-item-extension-point
This commit is contained in:
@@ -47,7 +47,7 @@ export class UmbExtensionRegistry {
|
||||
const nextData = this._kinds
|
||||
.getValue()
|
||||
.filter(
|
||||
(k) => k.matchType !== (kind as ManifestKind).matchType && k.matchKind !== (kind as ManifestKind).matchKind
|
||||
(k) => !(k.matchType === (kind as ManifestKind).matchType && k.matchKind === (kind as ManifestKind).matchKind)
|
||||
);
|
||||
nextData.push(kind as ManifestKind);
|
||||
this._kinds.next(nextData);
|
||||
@@ -125,7 +125,10 @@ export class UmbExtensionRegistry {
|
||||
T extends ManifestBase = SpecificManifestTypeOrManifestBase<Key>
|
||||
>(type: Key, alias: string) {
|
||||
return combineLatest([
|
||||
this.extensions.pipe(map((exts) => exts.find((ext) => ext.type === type && ext.alias === alias))),
|
||||
this.extensions.pipe(
|
||||
map((exts) => exts.find((ext) => ext.type === type && ext.alias === alias)),
|
||||
distinctUntilChanged(extensionSingleMemoization)
|
||||
),
|
||||
this._kindsOfType(type),
|
||||
]).pipe(
|
||||
map(([ext, kinds]) => {
|
||||
|
||||
Reference in New Issue
Block a user