[SOLVED] Sorting in array

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

Sorting fields inside array is not possible. Not even with recreate fields.

Expected behavior

Sorting fields inside an array.

Minimal reproduction of the problem

Create new schema -> create field array -> add 2 fields to array -> try to change sort with drag and drop.

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [x] Cloud version

Version: [VERSION]

Browser:

  • [x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:
Console error when drop:
ERROR TypeError: e.map is not a function
at e.orderFields (app.js?629f79ef1b79c0c79e42:2)
at l.sortFields (9.629f79ef1b79c0c79e42.chunk.js:1)
at Object.handleEvent (9.629f79ef1b79c0c79e42.chunk.js:1)
at Object.handleEvent (app.js?629f79ef1b79c0c79e42:2)
at Object.handleEvent (app.js?629f79ef1b79c0c79e42:2)
at ug (app.js?629f79ef1b79c0c79e42:2)
at app.js?629f79ef1b79c0c79e42:2
at e.o [as _next] (app.js?629f79ef1b79c0c79e42:2)
at e.__tryOrUnsub (app.js?629f79ef1b79c0c79e42:2)
at e.next (app.js?629f79ef1b79c0c79e42:2)

Welcome in the community and thanks a lot for the very good bug report. It will be fixed this week.

I have solved it in the master branch.