Skip to content

Commit 3e29d91

Browse files
authored
fix(field-registering): fix field registering on the server and the admin (#91)
1 parent d077436 commit 3e29d91

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ A plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provid
4747
## 🧰 Requirements
4848

4949
50-
5150

5251
Complete installation requirements are exact the same as for Strapi itself and could be found in the [official Strapi
5352
documentation](https://docs.strapi.io/dev-docs/quick-start).

admin/src/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
import { prefixPluginTranslations } from '@strapi/helper-plugin';
22

3-
import pluginPkg from '../../package.json';
43
import pluginId from './pluginId';
54
import getTrad from './utils/getTrad';
65

7-
const { name } = pluginPkg.strapi;
8-
96
export default {
107
register(app) {
118
app.customFields.register({
12-
name,
13-
pluginId,
9+
name: 'formula',
10+
pluginId: 'field-formula',
1411
type: 'json',
1512
intlLabel: {
1613
id: getTrad(`label`),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strapi-plugin-field-formula",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Strapi Plugin Field Formula - Custom Field for integration mathjs and Strapi",
55
"strapi": {
66
"name": "field-formula",

server/register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module.exports = ({ strapi }) => {
44
strapi.customFields.register({
5-
name: 'strapi-plugin-field-formula',
5+
name: 'formula',
66
plugin: 'field-formula',
77
type: 'json'
88
});

0 commit comments

Comments
 (0)