- removed console.logs
This commit is contained in:
@@ -48,7 +48,6 @@ const RegionSelector = ({
|
|||||||
const getMagnificationLevel = () => {
|
const getMagnificationLevel = () => {
|
||||||
const test = socket?.data;
|
const test = socket?.data;
|
||||||
if (!socket?.data) return null;
|
if (!socket?.data) return null;
|
||||||
console.log(test);
|
|
||||||
if (!test || !test.magnificationLevel) return "1x";
|
if (!test || !test.magnificationLevel) return "1x";
|
||||||
return test?.magnificationLevel;
|
return test?.magnificationLevel;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ const postZoomLevel = async (zoomConfig: CameraZoomConfig) => {
|
|||||||
id: `Camera${zoomConfig.cameraFeedID}-onvif-controller`,
|
id: `Camera${zoomConfig.cameraFeedID}-onvif-controller`,
|
||||||
fields,
|
fields,
|
||||||
};
|
};
|
||||||
console.log(zoomPayload);
|
|
||||||
const response = await fetch(`${CAMBASE}/api/update-config`, {
|
const response = await fetch(`${CAMBASE}/api/update-config`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify(zoomPayload),
|
body: JSON.stringify(zoomPayload),
|
||||||
|
|||||||
Reference in New Issue
Block a user