r- efactored reboots api to use useMutation for maintainability and readability.
- updated zoom debug
This commit is contained in:
@@ -36,10 +36,10 @@ const CameraSettingFields = ({
|
||||
const parsed = parseRTSPUrl(initialData?.propURI?.value);
|
||||
|
||||
useEffect(() => {
|
||||
if (!query.data) return;
|
||||
if (!query?.data) return;
|
||||
const apiZoom = getZoomLevel(query.data);
|
||||
onZoomLevelChange?.(apiZoom);
|
||||
}, [query.data, onZoomLevelChange]);
|
||||
}, [query?.data, onZoomLevelChange]);
|
||||
|
||||
const getZoomLevel = (levelstring: string | undefined) => {
|
||||
switch (levelstring) {
|
||||
|
||||
Reference in New Issue
Block a user