fix: form input not being saved after "back" (#11540)
Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
1 parent
919066222b
commit
ce13350d5d
2 files changed
+21
-1
No files matched your search
@@ -461,7 +461,10 @@ function useInitialFormValues({
|
||||
const session = useSession();
|
||||
useEffect(() => {
|
||||
(async function () {
|
||||
if (Object.keys(formValues).length) return formValues;
|
||||
if (Object.keys(formValues).length) {
|
||||
setDefaultValues(formValues);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!eventType?.bookingFields) {
|
||||
return {};
|
||||
|
||||
Reference in new issue
Block a user