Skip to content

Commit

Permalink
fix a typo in form value-listener (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpylua authored Nov 26, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6fd1ab0 commit 9694740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zent/src/form/formulr/value-listener.tsx
Original file line number Diff line number Diff line change
@@ -189,7 +189,7 @@ export function useFieldValue<T>(field: string | FieldModel<T>): T | null {
} else if (model) {
const $ = model.value$.subscribe(setValue);

return () => $.unsubscribe;
return () => $.unsubscribe();
} else {
return noop;
}

0 comments on commit 9694740

Please sign in to comment.