updated preview camera view and removed NPED alert disptach
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import { useRef, useCallback, useEffect } from "react";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
const apiUrl = import.meta.env.VITE_BASEURL;
|
||||
const folkstoneUrl = import.meta.env.VITE_FOLKESTONE_BASE;
|
||||
console.log(folkstoneUrl);
|
||||
const apiUrl = import.meta.env.VITE_AGX_FRONT_BASE;
|
||||
|
||||
async function fetchSnapshot(cameraSide: string) {
|
||||
const response = await fetch(
|
||||
// `${folkstoneUrl}/Colour-preview`
|
||||
`${apiUrl}/${cameraSide}-preview`
|
||||
);
|
||||
const response = await fetch(`${apiUrl}/${cameraSide}-preview`);
|
||||
if (!response.ok) {
|
||||
throw new Error("Cannot reach endpoint");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user