mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Prevent crash when switching to Date type in Datetime interface (#23384)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
This commit is contained in:
5
.changeset/plenty-flies-yawn.md
Normal file
5
.changeset/plenty-flies-yawn.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@directus/app': patch
|
||||
---
|
||||
|
||||
Prevented a crash in the Data Studio when switching to the "Date" type while configuring Datetime interface
|
||||
@@ -12,10 +12,6 @@ export default defineInterface({
|
||||
group: 'selection',
|
||||
options: ({ field }) => {
|
||||
if (field.type === 'date') {
|
||||
if (field.meta?.options) {
|
||||
field.meta.options = {};
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user