Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 3e0a9a3

Browse files
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
2 parents 41b1f5f + 551cb22 commit 3e0a9a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/packages/documents/documents/workspace/document-workspace.context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ export class UmbDocumentWorkspaceContext
277277

278278
this.#entityContext.setEntityType(UMB_DOCUMENT_ENTITY_TYPE);
279279
this.#entityContext.setUnique(data.unique);
280+
this.#isTrashedContext.setIsTrashed(data.isTrashed);
280281
this.setIsNew(true);
281282
this.#persistedData.setValue(undefined);
282283
this.#currentData.setValue(data);

0 commit comments

Comments
 (0)