Spaces:
Paused
Paused
fix: remove undefined width/height from useEffect dependency array
Browse filesThe width and height variables were defined inside the useEffect callback
but incorrectly referenced in the dependency array (outside that scope),
causing ReferenceError at runtime.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
apps/matrix-frontend/src/widgets/DataAnalysisWidget.tsx
CHANGED
|
@@ -154,7 +154,7 @@ export default function DataAnalysisWidget() {
|
|
| 154 |
.attr("d", line);
|
| 155 |
}
|
| 156 |
|
| 157 |
-
}, [data, xAxis, yAxis, chartType,
|
| 158 |
|
| 159 |
// Basic Analysis (Client Side)
|
| 160 |
const runBasicAnalysis = () => {
|
|
|
|
| 154 |
.attr("d", line);
|
| 155 |
}
|
| 156 |
|
| 157 |
+
}, [data, xAxis, yAxis, chartType, analysis]);
|
| 158 |
|
| 159 |
// Basic Analysis (Client Side)
|
| 160 |
const runBasicAnalysis = () => {
|