Refactor product identifier from 'productId' to 'productUuid' across simulation stores and related types for consistency and clarity

This commit is contained in:
2025-06-05 15:37:49 +05:30
parent de19ea9f83
commit 6780e73dd1
103 changed files with 2199 additions and 2397 deletions

View File

@@ -56,9 +56,9 @@ const PieChartInput = (props: Props) => {
`http://${process.env.REACT_APP_SERVER_REST_API_BASE_URL}/api/V1/widget/data?widgetID=${selectedChartId.id}&zoneUuid=${selectedZone.zoneUuid}&projectId=${projectId}`,
{
headers: {
Authorization: "Bearer <access_token>", // Replace with actual token
Authorization: "Bearer <access_token>",
"Content-Type": "application/json",
token: localStorage.getItem("token") || "", // Coerce null to empty string
token: localStorage.getItem("token") || "",
refresh_token: localStorage.getItem("refreshToken") || "",
},
}
@@ -97,9 +97,9 @@ const PieChartInput = (props: Props) => {
`http://${process.env.REACT_APP_SERVER_REST_API_BASE_URL}/api/V1/widget/save`,
{
headers: {
Authorization: "Bearer <access_token>", // Replace with actual token
Authorization: "Bearer <access_token>",
"Content-Type": "application/json",
token: localStorage.getItem("token") || "", // Coerce null to empty string
token: localStorage.getItem("token") || "",
refresh_token: localStorage.getItem("refreshToken") || "",
},
},