Error & formating fixes

This commit is contained in:
Tilen Komel
2024-08-21 17:41:24 +02:00
parent 8bb0a96744
commit cf423620c4
9 changed files with 47 additions and 30 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ export function DynamicForm<T extends FieldValues>({
if (!disabledBy) return false;
return disabledBy.some((field) => {
if (field.fieldName === "always") return true
if (field.fieldName === "always") return true;
const value = getValues(field.fieldName);
if (value === "always") return true;
if (typeof value === "boolean") return field.invert ? value : !value;