feat: Add 'hero' as inferable image field (#3294)

This commit is contained in:
Ben Harris 2020-02-21 00:44:00 +08:00 committed by GitHub
parent 5ea1554a07
commit 971926c369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ export const INFERABLE_FIELDS = {
image: {
type: 'image',
secondaryTypes: [],
synonyms: ['image', 'thumbnail', 'thumb', 'picture', 'avatar', 'photo', 'cover'],
synonyms: ['image', 'thumbnail', 'thumb', 'picture', 'avatar', 'photo', 'cover', 'hero'],
defaultPreview: value => value,
fallbackToFirstField: false,
showError: false,