unfreeze linkpicker link

This commit is contained in:
Jacob Overgaard
2024-03-01 10:51:45 +01:00
parent 11f9799ec3
commit 771f74d0fe

View File

@@ -105,7 +105,8 @@ export default class UmbTinyMceLinkPickerPlugin extends UmbTinyMcePluginBase {
const linkPickerData = await modalHandler.onSubmit().catch(() => undefined);
if (!linkPickerData) return;
this.#linkPickerData = linkPickerData;
// TODO: This is a workaround for the issue where the link picker modal is returning a frozen object, and we need to extract the link into smaller parts to avoid the frozen object issue.
this.#linkPickerData = { link: { ...linkPickerData.link } };
this.#updateLink();
}