Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 398424d

Browse files
committed
register repository manifests
1 parent f2a09c0 commit 398424d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/packages/core/content-type/modals/composition-picker/composition-picker-modal.element.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,18 @@ export class UmbCompositionPickerModalElement extends UmbModalBaseElement<
9090
await this.#init;
9191
if (!this.#compositionRepository) return;
9292

93-
const isElement = this.data?.isElement;
94-
const currentPropertyAliases = this.data?.currentPropertyAliases;
93+
// Notice isElement is not available on all types that can be composed.
94+
const isElement = this.data?.isElement ?? undefined;
95+
const currentPropertyAliases = this.data?.currentPropertyAliases ?? [];
9596

9697
const { data } = await this.#compositionRepository.availableCompositions({
9798
unique: this.#unique,
9899
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
99100
// @ts-ignore
100101
// TODO: isElement is not available on all types that can be composed.
101-
isElement: isElement ?? false,
102+
isElement: isElement,
102103
currentCompositeUniques: this._selection,
103-
currentPropertyAliases: currentPropertyAliases ?? [],
104+
currentPropertyAliases: currentPropertyAliases,
104105
});
105106

106107
if (!data) return;
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { manifests as detailManifests } from './detail/manifests.js';
22
import { manifests as itemManifests } from './item/manifests.js';
3+
import { manifests as compositionManifests } from './composition/manifests.js';
34
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
45

5-
export const manifests: Array<ManifestTypes> = [...detailManifests, ...itemManifests];
6+
export const manifests: Array<ManifestTypes> = [...detailManifests, ...itemManifests, ...compositionManifests];
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { manifests as detailManifests } from './detail/manifests.js';
22
import { manifests as itemManifests } from './item/manifests.js';
3+
import { manifests as compositionManifests } from './composition/manifests.js';
34
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
45

5-
export const manifests: Array<ManifestTypes> = [...detailManifests, ...itemManifests];
6+
export const manifests: Array<ManifestTypes> = [...detailManifests, ...itemManifests, ...compositionManifests];

0 commit comments

Comments
 (0)