fix: console warning on plugin's config with frontend:true

Massimo Melina committed Mar 5, 2023 at 15:12 UTC effcec2593e32a6eb7ac4d2ef6ba6fc8d10f39b1
1 file changed +1 -1
admin/src/InstalledPlugins.ts
+1 -1
@@ -111,7 +111,7 @@ function makeFields(config: any) {
111 return Object.entries(config).map(([k,o]: [string,any]) => {
112 if (!_.isPlainObject(o))
113 return o
114 - let { type, defaultValue, fields, ...rest } = o
114 + let { type, defaultValue, fields, frontend, ...rest } = o
115 const comp = (type2comp as any)[type] as Field<any> | undefined
116 if (comp === ArrayField)
117 fields = makeFields(fields)