mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-04 21:19:27 +08:00
fix(m2m-array): incorrect data retrieved for m2m array fields from association in forms (#6744)
* fix(m2m-array): incorrect data retrieved for m2m array fields from association in forms * fix(getAction): update pagination parameter for hasMany and belongsToMany actions --------- Co-authored-by: Zeke Zhang <958414905@qq.com>
This commit is contained in:
parent
b8bfc17a59
commit
bd06d13749
@ -8,11 +8,11 @@
|
||||
*/
|
||||
|
||||
const TYPE_TO_ACTION = {
|
||||
hasMany: 'list?pageSize=9999',
|
||||
hasMany: 'list?paginate=false',
|
||||
belongsTo: 'get',
|
||||
hasOne: 'get',
|
||||
belongsToMany: 'list?pageSize=9999',
|
||||
belongsToArray: 'get',
|
||||
belongsToMany: 'list?paginate=false',
|
||||
belongsToArray: 'list?paginate=false',
|
||||
};
|
||||
export const getAction = (type: string) => {
|
||||
if (process.env.NODE_ENV !== 'production' && !(type in TYPE_TO_ACTION)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user