Add default display template for directus_files

Fixes #5364
This commit is contained in:
rijkvanzanten
2021-04-29 20:40:52 -04:00
parent cd565c2e60
commit 74861e6f81
3 changed files with 4 additions and 4 deletions

View File

@@ -93,7 +93,7 @@ router.post(
throw new InvalidPayloadException(error.message);
}
const field: Partial<Field> & { field: string; type: typeof types[number] } = req.body;
const field: Partial<Field> & { field: string; type: typeof types[number] | null } = req.body;
await service.createField(req.params.collection, field);