Skip to content

Commit 74b7e2c

Browse files
committed
fix:removed unwanted useRef from selectCms component
1 parent ff35a53 commit 74b7e2c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ui/src/components/LegacyCms/Actions/LoadSelectCms.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const LoadSelectCms = (props: LoadSelectCmsProps) => {
3737
//sconst selectedOrganisation = useSelector((state:RootState)=>state?.authentication?.selectedOrganisation);
3838

3939
const dispatch = useDispatch();
40-
const newMigrationDataRef = useRef(newMigrationData);
4140

4241
const [cmsData, setCmsData] = useState<ICMSType[]>([]);
4342
const [searchText] = useState<string>('');
@@ -156,9 +155,6 @@ const LoadSelectCms = (props: LoadSelectCmsProps) => {
156155
filterCMSData(searchText);
157156
}, []);
158157

159-
useEffect(()=>{
160-
newMigrationDataRef.current = newMigrationData;
161-
},[newMigrationData])
162158

163159
// Handle Legacy cms selection for single match
164160
// useEffect(() => {

0 commit comments

Comments
 (0)