Skip to content

Commit

Permalink
chore: fixes form state for disabled fields, createFirstUser
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikrut committed Nov 11, 2024
1 parent b240291 commit 3f74896
Show file tree
Hide file tree
Showing 5 changed files with 4,778 additions and 8,815 deletions.
2 changes: 1 addition & 1 deletion packages/next/src/views/CreateFirstUser/index.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const CreateFirstUserClient: React.FC<{
docPreferences,
formState: prevFormState,
operation: 'create',
schemaPath: userSlug,
schemaPath: `_${userSlug}.auth`,
})

return state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ export const addFieldStatePromise = async (args: AddFieldStatePromiseArgs): Prom
break
}
}
} else if (fieldHasSubFields(field)) {
} else if (fieldHasSubFields(field) && !fieldAffectsData(field)) {
// Handle field types that do not use names (row, etc)

if (!filter || filter(args)) {
Expand Down
Loading

0 comments on commit 3f74896

Please sign in to comment.