Update link-picker-modal.element.ts

This commit is contained in:
Mads Rasmussen
2024-02-29 14:31:35 +01:00
parent 26b45e2663
commit 70fd3ca474

View File

@@ -98,6 +98,7 @@ export class UmbLinkPickerModalElement extends UmbModalBaseElement<UmbLinkPicker
const linkType = (entityType as UmbLinkPickerLinkType) ?? 'external';
this._selectedKey = selectedKey;
if (this._selectedKey === undefined) return;
this._selectionConfiguration.selection = [this._selectedKey];
this.#partialUpdateLink({ type: linkType, unique: selectedKey, url: selectedKey });
this.requestUpdate();