Skip to content

Commit 52ab2ea

Browse files
committed
trying to watch forms
1 parent 69c3bb9 commit 52ab2ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,7 @@ export const BlackholeForm: FC<TBlackholeFormCreateProps> = ({
493493
* Builds the payload and triggers the debounced sync-to-YAML call.
494494
*/
495495
const onValuesChangeCallback = useCallback(
496-
(values?: any, flag?: string) => {
497-
console.log('fired', flag)
496+
(values?: any) => {
498497
// Get the most recent form values (or use the provided ones)
499498
const vRaw = values ?? form.getFieldsValue(true)
500499
const v = scrubLiteralWildcardKeys(vRaw)
@@ -643,7 +642,7 @@ export const BlackholeForm: FC<TBlackholeFormCreateProps> = ({
643642
)
644643

645644
useEffect(() => {
646-
onValuesChangeCallback(undefined, 'fuck me')
645+
onValuesChangeCallback()
647646
// eslint-disable-next-line react-hooks/exhaustive-deps
648647
}, [allValues])
649648

0 commit comments

Comments
 (0)