Updation in SPIRD Id selection.
This commit is contained in:
parent
30144695f9
commit
1107144201
@ -45,6 +45,15 @@ const OrgPickerFromSPId = ({ title, placeholder }) => {
|
|||||||
setSPRID(orgData.sprid);
|
setSPRID(orgData.sprid);
|
||||||
}
|
}
|
||||||
}, [orgData, setValue]);
|
}, [orgData, setValue]);
|
||||||
|
// Add this..
|
||||||
|
useEffect(() => {
|
||||||
|
const subscription = watch((value) => {
|
||||||
|
if (!value.spridSearchText) {
|
||||||
|
setSPRID("");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return () => subscription.unsubscribe();
|
||||||
|
}, [watch]);
|
||||||
|
|
||||||
const handleOrg = (orgId) => { };
|
const handleOrg = (orgId) => { };
|
||||||
const SP = watch("spridSearchText");
|
const SP = watch("spridSearchText");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user