Fix update pages (#1237)

This commit is contained in:
Dawid Tarasiuk 2021-07-19 14:58:02 +02:00 committed by GitHub
parent 9fad9b519e
commit e830d199c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,7 +224,7 @@ function usePageForm(
? handleFormSubmit(getSubmitData(), handleSubmit, setChanged) ? handleFormSubmit(getSubmitData(), handleSubmit, setChanged)
: onSubmit(getSubmitData()); : onSubmit(getSubmitData());
const valid = !!opts.selectedPageType; const valid = pageExists || !!opts.selectedPageType;
return { return {
change: handleChange, change: handleChange,