mirror of
https://github.com/directus/directus.git
synced 2026-01-25 14:28:00 -05:00
fix my stupidity
This commit is contained in:
@@ -274,9 +274,11 @@ export default defineComponent({
|
||||
};
|
||||
|
||||
function fillTemplate() {
|
||||
try {
|
||||
emit('input', JSON.parse(props.template));
|
||||
} catch {
|
||||
if(props.type === 'json') {
|
||||
try {
|
||||
emit('input', JSON.parse(props.template));
|
||||
} catch {}
|
||||
} else {
|
||||
emit('input', props.template);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user