fix: form input not being saved after "back" (#11540)

Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
Nafees NazikandHariom Balhara authored and GitHub committed 2023-09-27 04:39:37 +00:00
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 {};