mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
2f1e19c00a
@ -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) => {
|
||||
if (s[key] === action) {
|
||||
if (s[key] === action && (!name || s.name === name)) {
|
||||
return s;
|
||||
}
|
||||
const c = s.reduceProperties((buf, s) => {
|
||||
if (s[key] === action) {
|
||||
if (s[key] === action && (!name || s.name === name)) {
|
||||
return s;
|
||||
}
|
||||
return buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user