Skip to content

Commit e911aa5

Browse files
committed
Update document-blueprint-options-create-modal.element.ts
1 parent 475b300 commit e911aa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packages/documents/document-blueprints/entity-actions/create/modal/document-blueprint-options-create-modal.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ export class UmbDocumentBlueprintOptionsCreateModalElement extends UmbModalBaseE
2020

2121
#createFolderAction?: UmbCreateFolderEntityAction;
2222

23-
#itemRepository = new UmbDocumentBlueprintFolderRepository(this);
23+
#folderRepository = new UmbDocumentBlueprintFolderRepository(this);
2424

2525
override async connectedCallback(): Promise<void> {
2626
super.connectedCallback();
2727
if (!this.data?.parent) throw new Error('A parent is required to create a folder');
2828

2929
if (this.data.parent.unique) {
30-
const { data: parent } = await this.#itemRepository.request(this.data.parent.unique.toString());
30+
const { data: parent } = await this.#folderRepository.requestByUnique(this.data.parent.unique.toString());
3131
this._parentName = parent?.name ?? this.localize.term('general_unknown');
3232
} else {
3333
this._parentName = this.localize.term('treeHeaders_contentBlueprints');

0 commit comments

Comments
 (0)