Skip to content

Commit

Permalink
Update web/src/components/molecules/Schema/FieldModal/hooks.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nour Balaha <nourbalaha0@gmail.com>
  • Loading branch information
caichi-t and nourbalaha authored Oct 16, 2024
1 parent 53c13e2 commit 47012c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/src/components/molecules/Schema/FieldModal/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,7 @@ export default (
}
}, [form, values]);

const handleValuesChange = useCallback(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async (changedValues: any) => {
const handleValuesChange = useCallback(async (changedValues: Record<string, unknown>) => {
const [key, value] = Object.entries(changedValues)[0];
let changedValue = value;
let defaultValue = defaultValueRef.current?.[key as keyof FormTypes];
Expand Down

0 comments on commit 47012c6

Please sign in to comment.