Skip to content

Commit

Permalink
fix: update useView
Browse files Browse the repository at this point in the history
  • Loading branch information
adyfk committed Mar 16, 2023
1 parent 3a36ee2 commit b87fc12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const useView = (props: { form?: Form; config: Schema }) => {
subject: 'state',
form,
callback: latestState,
disabled: !config.name,
disabled: !config.props?.length && !config.name,
});

useEffect(() => {
Expand Down

0 comments on commit b87fc12

Please sign in to comment.