Merge branch 'main-dev' into dev-refactor

This commit is contained in:
2025-06-24 15:41:18 +05:30
114 changed files with 591 additions and 273 deletions

View File

@@ -21,11 +21,11 @@ export default async function getActiveUsersData(organization: string) {
}
if (!response.ok) {
throw new Error(`Error: ${response.status} - ${response.statusText}`);
console.error(`Error: ${response.status} - ${response.statusText}`);
}
if (!response.ok) {
throw new Error("Failed to get active cameras ");
console.error("Failed to get active cameras ");
}
const result = await response.json();

View File

@@ -20,11 +20,11 @@ export default async function fetchShareUsers(organization: string) {
localStorage.setItem("token", newAccessToken);
}
if (!response.ok) {
throw new Error(`Error: ${response.status} - ${response.statusText}`);
console.error(`Error: ${response.status} - ${response.statusText}`);
}
if (!response.ok) {
throw new Error("Failed to get users ");
console.error("Failed to get users ");
}
const result = await response.json();

View File

@@ -23,7 +23,7 @@ export default async function giveCollabAccess(
}
if (!response.ok) {
throw new Error("Failed to set Camera Position and Target");
console.error("Failed to set Camera Position and Target");
}
const result = await response.json();