mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix typing in formatted-json-value display
This commit is contained in:
@@ -18,14 +18,14 @@ export default defineComponent({
|
||||
},
|
||||
format: {
|
||||
type: String,
|
||||
default: false,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
const displayValue = computed(() => {
|
||||
if (!props.value) return null;
|
||||
try {
|
||||
return render(props.format, props.value);
|
||||
return render(props.format || '', props.value);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user