We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f35c35 commit edaeb1eCopy full SHA for edaeb1e
packages/next/src/views/Edit/Default/index.tsx
@@ -103,7 +103,15 @@ export const DefaultEditView: React.FC = () => {
103
const classes = [baseClass, id && `${baseClass}--is-editing`].filter(Boolean).join(' ')
104
105
const [schemaPath, setSchemaPath] = React.useState(entitySlug)
106
- const [validateBeforeSubmit, setValidateBeforeSubmit] = useState(false)
+ const [validateBeforeSubmit, setValidateBeforeSubmit] = useState(() => {
107
+ if (
108
+ operation === 'create' &&
109
+ collectionConfig.auth &&
110
+ !collectionConfig.auth.disableLocalStrategy
111
+ )
112
+ return true
113
+ return false
114
+ })
115
116
const onSave = useCallback(
117
(json) => {
0 commit comments