Merge pull request #2177 from umbraco/v14/bugfix/Create-new-content-item-doesn't-work-if-the-current-page-is-in-the-recycle-bin

Bugfix: Set trashed context when creating a new item
This commit is contained in:
Mads Rasmussen
2024-08-06 16:44:32 +02:00
committed by GitHub

View File

@@ -277,6 +277,7 @@ export class UmbDocumentWorkspaceContext
this.#entityContext.setEntityType(UMB_DOCUMENT_ENTITY_TYPE);
this.#entityContext.setUnique(data.unique);
this.#isTrashedContext.setIsTrashed(data.isTrashed);
this.setIsNew(true);
this.#persistedData.setValue(undefined);
this.#currentData.setValue(data);