Skip to content

Commit f0db5e0

Browse files
author
PatrikKozak
committed
fix: adds draftsEnabled to versionSchema in collections / globals
1 parent 934b443 commit f0db5e0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/collections/init.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default function registerCollections(ctx: Payload): void {
7272
buildVersionCollectionFields(collection),
7373
{
7474
disableUnique: true,
75+
draftsEnabled: true,
7576
options: {
7677
timestamps: true,
7778
},

src/globals/init.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default function initGlobals(ctx: Payload): void {
2828
buildVersionGlobalFields(global),
2929
{
3030
disableUnique: true,
31+
draftsEnabled: true,
3132
options: {
3233
timestamps: true,
3334
},

0 commit comments

Comments
 (0)