Refactor 3D Widget Input Handling and Cleanup
- Removed commented-out code related to adding 3D widgets from BarChartInput, LineGrapInput, PieChartInput, Progress1Input, Progress2Input components. - Updated widget input fetching logic in Widget2InputCard3D, Widget3InputCard3D, and Widget4InputCard3D to include projectId and versionId. - Enhanced error handling and logging in add3dWidget and get3dWidgetInput services. - Cleaned up console logs and unnecessary comments across various components for better readability. - Ensured consistent handling of widget data structure in ProductionCapacity, ReturnOfInvestment, StateWorking, and Throughput components.
This commit is contained in:
@@ -141,6 +141,7 @@ async function drawWall(
|
||||
userId,
|
||||
};
|
||||
|
||||
console.log('input: ', input);
|
||||
socket.emit("v1:Line:create", input);
|
||||
|
||||
setNewLines([newLines[0], newLines[1], line.current]);
|
||||
@@ -222,6 +223,7 @@ async function drawWall(
|
||||
userId,
|
||||
};
|
||||
|
||||
console.log('input: ', input);
|
||||
socket.emit("v1:Line:create", input);
|
||||
|
||||
setNewLines([line.current]);
|
||||
|
||||
@@ -107,6 +107,7 @@ function splitLine(
|
||||
userId,
|
||||
};
|
||||
|
||||
console.log('input1: ', input1);
|
||||
socket.emit("v1:Line:create", input1);
|
||||
|
||||
//REST
|
||||
@@ -126,6 +127,7 @@ function splitLine(
|
||||
userId,
|
||||
};
|
||||
|
||||
console.log('input2: ', input2);
|
||||
socket.emit("v1:Line:create", input2);
|
||||
|
||||
lines.current.push(newLine1, newLine2);
|
||||
|
||||
Reference in New Issue
Block a user