Skip to content

Conversation

@tranduongms
Copy link

@tranduongms tranduongms commented Nov 28, 2018

When set value in spec object it not used
module.exports = {
Field: require('../FileField'),
Filter: require('../FileFilter'),
readme: require('fs').readFileSync('./fields/types/file/Readme.md', 'utf8'),
section: 'Miscellaneous',
spec: {
label: 'File',
path: 'file',
value: {
"url": "https://dgbyuz0hxemz2.cloudfront.net/avatars/ZYxiqBgSYpa2qbW_",
"size": 640971,
"filename": "ZYxiqBgSYpa2qbW_",
"mimetype": "image/png"
},
},
};

Description of changes

Related issues (if any)

Testing

  • List browser version(s) any admin UI changes were tested in:
  • Please confirm you've added (or verified) test coverage for this change.
  • Please confirm npm run test-all ran successfully.
When set value in spec object it not used
module.exports = {
	Field: require('../FileField'),
	Filter: require('../FileFilter'),
	readme: require('fs').readFileSync('./fields/types/file/Readme.md', 'utf8'),
	section: 'Miscellaneous',
	spec: {
		label: 'File',
		path: 'file',
		value: {
			"url": "https://dgbyuz0hxemz2.cloudfront.net/avatars/ZYxiqBgSYpa2qbW_",
			"size": 640971,
			"filename": "ZYxiqBgSYpa2qbW_",
			"mimetype": "image/png"
		},
	},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants