Skip to content

Commit 5f17c9f

Browse files
committed
feat: enhance input validation logic in DataTypeInputComponent
1 parent 176f0e7 commit 5f17c9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/packages/ce/src/datatype/components/inputs/DataTypeInputComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const DataTypeInputComponent: React.FC<DataTypeInputComponentProps> = (pr
3434
const suggestions = "schema" in (schema ?? {}) ? (schema as NodeSchema)?.schema?.suggestions as (NodeFunction | ReferenceValue | LiteralValue)[] : []
3535
const inputName = "schema" in (schema ?? {}) ? (schema as NodeSchema)?.schema?.input : (schema as Schema)?.input
3636

37-
if ("schema" in (schema ?? {}) && ((schema as NodeSchema).blockedBy?.length ?? 0) > 0) {
37+
if ("schema" in (schema ?? {}) && (((schema as NodeSchema).blockedBy?.length ?? 0) > 0) && (rest.formValidation?.valid ?? false)) {
3838
return null
3939
}
4040

0 commit comments

Comments
 (0)