Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

fixed org selection after a deleted user login (#254)

jagadeeswaran-zipstack59c1cc81291f
diff --git a/frontend/src/hooks/useSessionValid.js b/frontend/src/hooks/useSessionValid.js
index 42246f2ce..ea922f3d9 100644
--- a/frontend/src/hooks/useSessionValid.js
+++ b/frontend/src/hooks/useSessionValid.js
@@ -50,6 +50,7 @@ function useSessionValid() {
const setOrgRes = await axios(requestOptions).catch((error) => {
if (error?.response && error?.response?.status === 403) {
navigate("/", { state: null });
+ window.location.reload();
}
});
userAndOrgDetails = setOrgRes?.data?.user;
diff --git a/frontend/src/layouts/rjsf-form-layout/RjsfFormLayout.jsx b/frontend/src/layouts/rjsf-form-layout/RjsfFormLayout.jsx
index 96801e350..1197a9522 100644
--- a/frontend/src/layouts/rjsf-form-layout/RjsfFormLayout.jsx
+++ b/frontend/src/layouts/rjsf-form-layout/RjsfFormLayout.jsx
@@ -111,6 +111,7 @@ function RjsfFormLayout({
fields={fields}
formData={formData}
transformErrors={transformErrors}
+ onError={() => {}}
onSubmit={(e) => validateAndSubmit(e.formData)}
formContext={{
descriptionLocation: "tooltip",