- addressed bugs flagged by BR
This commit is contained in:
@@ -31,7 +31,7 @@ const updateCamerasideConfig = async (data: { id: string | number; friendlyName:
|
||||
method: "POST",
|
||||
body: JSON.stringify(updateConfigPayload),
|
||||
});
|
||||
if (!response.ok) throw new Error("Feature unavailable: Coming soon");
|
||||
if (!response.ok) throw new Error("Please make sure fields are filled in correctly");
|
||||
};
|
||||
|
||||
export const useFetchCameraConfig = (cameraSide: string) => {
|
||||
|
||||
@@ -11,6 +11,7 @@ const getCameraMode = async (options: { camera: string }) => {
|
||||
};
|
||||
|
||||
const updateCameraMode = async (options: { camera: string; mode: string }) => {
|
||||
console.log(options);
|
||||
const dayNightPayload = {
|
||||
id: options.camera,
|
||||
fields: [
|
||||
|
||||
Reference in New Issue
Block a user