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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user