Selected organization should remain visible after navigating back #460

Merged
pramod.mahajan merged 2 commits from Kartik_Bug#1381 into Issues_Oct_1W 2025-10-08 13:36:44 +00:00
Showing only changes of commit 1107144201 - Show all commits

View File

@ -45,6 +45,15 @@ const OrgPickerFromSPId = ({ title, placeholder }) => {
setSPRID(orgData.sprid);
}
}, [orgData, setValue]);
// Add this..
useEffect(() => {
const subscription = watch((value) => {
if (!value.spridSearchText) {
setSPRID("");
}
});
return () => subscription.unsubscribe();
}, [watch]);
const handleOrg = (orgId) => { };
const SP = watch("spridSearchText");