mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-06 05:59:25 +08:00
fix: multiple relational fields are linked to the same table (#5744)
This commit is contained in:
parent
05d973ab02
commit
15d274e5be
@ -83,13 +83,13 @@ export const useRemoveGridFormItem = () => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export const findTableColumn = (schema: Schema, key: string, action: string, deepth = 0) => {
|
export const findTableColumn = (schema: Schema, key: string, action: string, name: string) => {
|
||||||
return schema.reduceProperties((buf, s) => {
|
return schema.reduceProperties((buf, s) => {
|
||||||
if (s[key] === action) {
|
if (s[key] === action && (!name || s.name === name)) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
const c = s.reduceProperties((buf, s) => {
|
const c = s.reduceProperties((buf, s) => {
|
||||||
if (s[key] === action) {
|
if (s[key] === action && (!name || s.name === name)) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
return buf;
|
return buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user