Error & formating fixes
This commit is contained in:
1 parent
8bb0a96744
commit
cf423620c4
9 files changed
+47
-30
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user