Skip to content

[Bug] EditForm break with documents.strictParams and without i18n #452

Description

@laurenskling

Addon

Webtools Core

Describe the bug

Turning on documents.strictParams in api.js breaks the EditForm, because locale=null and thats not allowed.

It happens here:
https://github.com/pluginpal/strapi-webtools/blob/master/packages/core/admin/components/EditForm/index.tsx#L31

I don't use i18n, so it's null.

Steps to reproduce the behavior

  1. no i18n on the model
  2. webtools on the model
  3. documents.strictParams in api.js
  4. go to a edit view
  5. see console errors and no Webtools section

Expected behavior

no break

Screenshots

No response

Code snippets

Node.js version

22

Package manager

Yarn

Strapi version

5.25

Plugin version

1.10

Database

sqlite

Operating system

macos

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions