Kraft102 Claude Opus 4.5 commited on
Commit
c1a8055
·
1 Parent(s): 29da98c

fix: remove undefined width/height from useEffect dependency array

Browse files

The 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, width, height, analysis]);
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 = () => {