From b87fc12e4241655007518bae29c78bc4b795c37a Mon Sep 17 00:00:00 2001 From: Adi Fatkhurozi Date: Thu, 16 Mar 2023 13:32:42 +0700 Subject: [PATCH] fix: update useView --- src/useView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useView.ts b/src/useView.ts index 599060e..7b9a222 100644 --- a/src/useView.ts +++ b/src/useView.ts @@ -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(() => {