Merge branch 'next' into develop

This commit is contained in:
nocobase[bot] 2024-11-28 04:26:59 +00:00
commit 86679c4953
2 changed files with 4 additions and 4 deletions

View File

@ -460,7 +460,7 @@ export function Input(props: VariableInputProps) {
</div>
) : (
<div style={{ flex: 1 }}>
{children && isFieldValue ? (
{children && (isFieldValue || !nullable) ? (
children
) : ConstantComponent ? (
<ConstantComponent

View File

@ -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;