Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

lint fixes for frontend CI (#8468)

Shahmir Varqha67fb71918998
diff --git a/frontend/src/plugins/impl/MatrixPlugin.tsx b/frontend/src/plugins/impl/MatrixPlugin.tsx
index 140c42f0d6..ba23287649 100644
--- a/frontend/src/plugins/impl/MatrixPlugin.tsx
+++ b/frontend/src/plugins/impl/MatrixPlugin.tsx
@@ -90,7 +90,7 @@ const MatrixComponent = ({
// Outside of a drag we always read from the prop `value` directly,
// which avoids stale-state bugs when the matrix shape changes.
const [draft, setDraft] = useState(value);
- const displayValue = activeCell != null ? draft : value;
+ const displayValue = activeCell == null ? value : draft;
const formatValue = (val: number) =>
scientific ? val.toExponential(precision) : val.toFixed(precision);
diff --git a/frontend/src/plugins/impl/__tests__/MatrixPlugin.test.tsx b/frontend/src/plugins/impl/__tests__/MatrixPlugin.test.tsx
index a050615883..58b847fab5 100644
--- a/frontend/src/plugins/impl/__tests__/MatrixPlugin.test.tsx
+++ b/frontend/src/plugins/impl/__tests__/MatrixPlugin.test.tsx
@@ -206,7 +206,7 @@ describe("MatrixPlugin", () => {
const plugin = new MatrixPlugin();
const props = makeProps({
value: [
- [0.00153, 1234567],
+ [0.001_53, 1_234_567],
[0, -0.042],
],
data: {