Skip to content

Commit

Permalink
fix(field-registering): fix field registering on the server and the a…
Browse files Browse the repository at this point in the history
…dmin (#91)
  • Loading branch information
BorysShulyak authored Oct 3, 2023
1 parent d077436 commit 3e29d91
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ A plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provid
## 🧰 Requirements

- `[email protected]`
- `[email protected]`

Complete installation requirements are exact the same as for Strapi itself and could be found in the [official Strapi
documentation](https://docs.strapi.io/dev-docs/quick-start).
Expand Down
7 changes: 2 additions & 5 deletions admin/src/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import { prefixPluginTranslations } from '@strapi/helper-plugin';

import pluginPkg from '../../package.json';
import pluginId from './pluginId';
import getTrad from './utils/getTrad';

const { name } = pluginPkg.strapi;

export default {
register(app) {
app.customFields.register({
name,
pluginId,
name: 'formula',
pluginId: 'field-formula',
type: 'json',
intlLabel: {
id: getTrad(`label`),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "strapi-plugin-field-formula",
"version": "1.0.2",
"version": "1.0.3",
"description": "Strapi Plugin Field Formula - Custom Field for integration mathjs and Strapi",
"strapi": {
"name": "field-formula",
Expand Down
2 changes: 1 addition & 1 deletion server/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = ({ strapi }) => {
strapi.customFields.register({
name: 'strapi-plugin-field-formula',
name: 'formula',
plugin: 'field-formula',
type: 'json'
});
Expand Down

0 comments on commit 3e29d91

Please sign in to comment.