Skip to content

[BUG]: type.attributes.map is not a function #526

@CDTdenisP

Description

@CDTdenisP

Hello, and thanks for this amazing plugin 💯
I was on strapi 5.12 an all was good, after update to strapi 5.16 (but i tried also 5.17) I get this error using your plugin.

App-GHNTN6HF.js?v=de4734f3:4197 Uncaught (in promise) TypeError: type.attributes.map is not a function
at formatTypeForRequest (App-GHNTN6HF.js?v=de4734f3:4197:33)
at App-GHNTN6HF.js?v=de4734f3:4125:41
at Array.map ()
at stateToRequestData (App-GHNTN6HF.js?v=de4734f3:4124:6)
at saveSchema (App-GHNTN6HF.js?v=de4734f3:4457:54)
at onClick (App-GHNTN6HF.js?v=de4734f3:3839:19)
at handleClick (chunk-WSB4GC7Y.js?v=de4734f3:3869:9)
at HTMLUnknownElement.callCallback2 (chunk-AWHRF5BE.js?v=de4734f3:3674:22)
at Object.invokeGuardedCallbackDev (chunk-AWHRF5BE.js?v=de4734f3:3699:24)
at invokeGuardedCallback (chunk-AWHRF5BE.js?v=de4734f3:3733:39)

hero you can find my repo

web-project-cms-strapi-update.zip

Originally posted by @CDTdenisP in #404

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions