Skip to content

Commit b9a441b

Browse files
committed
feat: 🎸 set expiry date not required and empty by default
1 parent 3e82679 commit b9a441b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎site/static/admin/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ collections: # A list of collections the CMS should be able to edit
3434
- {label: "Url", name: "url", widget: "string"}
3535
- {label: "Aliases", name: "aliases", widget: "string"}
3636
- {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD", timeFormat: false}
37-
- {label: "Expiry Date", name: "expirydate", widget: "datetime", format: "YYYY-MM-DD", timeFormat: false}
37+
- {label: "Expiry Date", name: "expirydate", widget: "datetime", format: "YYYY-MM-DD", timeFormat: false, required: false, default: ''}
3838
- {label: "Image", name: "cover", widget: "image", required: false}
3939
- {label: "Body", name: "body", widget: "markdown"}
4040
- {label: "Draft", name: "draft", widget: "boolean", default: true}
@@ -50,7 +50,7 @@ collections: # A list of collections the CMS should be able to edit
5050
- {label: "Weight", name: "weight", widget: "number", required: false}
5151
- {label: "Url", name: "url", widget: "string"}
5252
- {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD", timeFormat: false}
53-
- {label: "Expiry Date", name: "expirydate", widget: "datetime", format: "YYYY-MM-DD", timeFormat: false}
53+
- {label: "Expiry Date", name: "expirydate", widget: "datetime", format: "YYYY-MM-DD", timeFormat: false, required: false, default: ''}
5454
- {label: "Image", name: "cover", widget: "image", required: false}
5555
- {label: "Body", name: "body", widget: "markdown"}
5656
- {label: "Draft", name: "draft", widget: "boolean", default: true}

0 commit comments

Comments
 (0)