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 f5e7578 commit 4f323a3Copy full SHA for 4f323a3
packages/ui/src/elements/Autosave/index.tsx
@@ -155,7 +155,7 @@ export const Autosave: React.FC<Props> = ({
155
}
156
})
157
.then((json) => {
158
- if (versionsConfig?.drafts && versionsConfig?.drafts?.validate && json.errors) {
+ if (versionsConfig?.drafts && versionsConfig?.drafts?.validate && json?.errors) {
159
if (Array.isArray(json.errors)) {
160
const [fieldErrors, nonFieldErrors] = json.errors.reduce(
161
([fieldErrs, nonFieldErrs], err) => {
0 commit comments