Skip to content

Commit 9158267

Browse files
committed
only delete items when they are trashed
1 parent 645b470 commit 9158267

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packages/media/media/entity-actions/manifests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { UMB_MEDIA_ENTITY_TYPE } from '../entity.js';
33
import { manifests as createManifests } from './create/manifests.js';
44
import { manifests as moveManifests } from './move-to/manifests.js';
55
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
6-
import { UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS } from '@umbraco-cms/backoffice/recycle-bin';
6+
import { UMB_ENTITY_IS_TRASHED_CONDITION_ALIAS } from '@umbraco-cms/backoffice/recycle-bin';
77

88
const entityActions: Array<ManifestTypes> = [
99
...createManifests,
@@ -19,7 +19,7 @@ const entityActions: Array<ManifestTypes> = [
1919
},
2020
conditions: [
2121
{
22-
alias: UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS,
22+
alias: UMB_ENTITY_IS_TRASHED_CONDITION_ALIAS,
2323
},
2424
],
2525
},

0 commit comments

Comments
 (0)