@stackbit/datocms-plugin-typed-list
Advanced tools
+2
-2
| { | ||
| "name": "@stackbit/datocms-plugin-typed-list", | ||
| "homepage": "https://github.com/stackbithq/datocms-plugin-typed-list#readme", | ||
| "version": "0.1.2", | ||
| "version": "0.1.3", | ||
| "description": "Plugin for editing typed list (list of strings, enums, numbers) in DatoCMS using JSON field", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
| "type": "string", | ||
| "required": true, | ||
| "required": false, | ||
| "default": "string" | ||
@@ -27,0 +27,0 @@ }, { |
+1
-1
@@ -18,3 +18,3 @@ function deserializeValue(value) { | ||
| function getFieldType(plugin) { | ||
| let type = _.get(plugin, 'parameters.instance.type'); | ||
| let type = _.get(plugin, 'parameters.instance.type', 'string'); | ||
| if (!_.includes(['string', 'number'], type)) { | ||
@@ -21,0 +21,0 @@ console.error('illegal type "' + type + '" for datocms-plugin-typed-list'); |
301837
0