mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Remove quotes on string values for raw display (#9522)
This commit is contained in:
@@ -5,7 +5,7 @@ export default defineDisplay({
|
||||
id: 'raw',
|
||||
name: '$t:displays.raw.raw',
|
||||
icon: 'code',
|
||||
component: ({ value }) => JSON.stringify(value),
|
||||
component: ({ value }) => (typeof value === 'string' ? value : JSON.stringify(value)),
|
||||
options: [],
|
||||
types: TYPES,
|
||||
localTypes: ['file', 'files', 'group', 'm2a', 'm2m', 'm2o', 'o2m', 'presentation', 'standard', 'translations'],
|
||||
|
||||
Reference in New Issue
Block a user