diff --git a/src/Components/Assets/AssetType/ONVIFCamera.tsx b/src/Components/Assets/AssetType/ONVIFCamera.tsx index ec11761abf6..0f26c4924ae 100644 --- a/src/Components/Assets/AssetType/ONVIFCamera.tsx +++ b/src/Components/Assets/AssetType/ONVIFCamera.tsx @@ -42,6 +42,7 @@ const ONVIFCamera = (props: ONVIFCameraProps) => { const [refreshPresetsHash, setRefreshPresetsHash] = useState( Number(new Date()) ); + const [refreshHash, setRefreshHash] = useState(Number(new Date())); const dispatch = useDispatch(); useEffect(() => { @@ -89,7 +90,7 @@ const ONVIFCamera = (props: ONVIFCameraProps) => { Notification.Success({ msg: "Asset Configured Successfully", }); - window.location.reload(); + setRefreshHash(Number(new Date())); } else { Notification.Error({ msg: "Something went wrong..!", @@ -200,6 +201,7 @@ const ONVIFCamera = (props: ONVIFCameraProps) => { {assetType === "ONVIF" ? (