Skip to content

Commit

Permalink
Merge pull request #2177 from umbraco/v14/bugfix/Create-new-content-i…
Browse files Browse the repository at this point in the history
…tem-doesn't-work-if-the-current-page-is-in-the-recycle-bin

Bugfix: Set trashed context when creating a new item
  • Loading branch information
madsrasmussen authored Aug 6, 2024
2 parents 41b1f5f + 551cb22 commit 3e0a9a3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3e0a9a3

Please sign in to comment.