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.

fix: fe lint errors (#6515)

Dylan Madisetti043a5a65966c
diff --git a/frontend/src/components/editor/output/MarimoErrorOutput.tsx b/frontend/src/components/editor/output/MarimoErrorOutput.tsx
index a73059aa14..5891b14994 100644
--- a/frontend/src/components/editor/output/MarimoErrorOutput.tsx
+++ b/frontend/src/components/editor/output/MarimoErrorOutput.tsx
@@ -500,8 +500,9 @@ export const MarimoErrorOutput = ({
<div key="sql-errors">
{sqlErrors.map((error, idx) => {
const line =
- error.sql_line != null ? (error?.sql_line | 0) + 1 : null;
- const col = error.sql_col != null ? (error?.sql_col | 0) + 1 : null;
+ error.sql_line == null ? null : Math.trunc(error?.sql_line) + 1;
+ const col =
+ error.sql_col == null ? null : Math.trunc(error?.sql_col) + 1;
return (
<div key={`sql-error-${idx}`} className="space-y-2">
<p className="text-muted-foreground">{error.msg}</p>