Skip to content

Commit 06f76c4

Browse files
committed
update packages and fix: improve error message handling in ErrorFallback and TableErrorFallback components
1 parent 0ab9c4b commit 06f76c4

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

bun.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"echarts": "^6.0.0",
5151
"echarts-for-react": "^3.0.5",
5252
"fflate": "^0.8.2",
53-
"framer-motion": "^12.25.0",
53+
"framer-motion": "^12.27.1",
5454
"html2canvas": "^1.4.1",
5555
"lodash": "^4.17.21",
5656
"lucide-react": "^0.546.0",
@@ -60,14 +60,14 @@
6060
"react": "^19.2.3",
6161
"react-dom": "^19.2.3",
6262
"react-dropzone": "^14.3.8",
63-
"react-error-boundary": "^6.0.3",
64-
"react-hook-form": "^7.71.0",
63+
"react-error-boundary": "^6.1.0",
64+
"react-hook-form": "^7.71.1",
6565
"react-markdown": "^10.1.0",
6666
"react-resizable-panels": "^3.0.6",
6767
"react-router": "^7.12.0",
6868
"recharts": "^3.6.0",
6969
"sonner": "^2.0.7",
70-
"sql-formatter": "^15.6.12",
70+
"sql-formatter": "^15.7.0",
7171
"tailwind-merge": "^3.4.0",
7272
"tailwindcss-animate": "^1.0.7",
7373
"vaul": "^1.1.2",
@@ -78,7 +78,7 @@
7878
"devDependencies": {
7979
"@eslint/js": "^9.39.2",
8080
"@types/lodash": "^4.17.23",
81-
"@types/node": "^24.10.7",
81+
"@types/node": "^24.10.9",
8282
"@types/papaparse": "^5.5.2",
8383
"@types/react": "^19.2.8",
8484
"@types/react-dom": "^19.2.3",
@@ -92,7 +92,7 @@
9292
"postcss": "^8.5.6",
9393
"tailwindcss": "^4.1.18",
9494
"typescript": "~5.9.3",
95-
"typescript-eslint": "^8.52.0",
95+
"typescript-eslint": "^8.53.1",
9696
"vite": "^7.3.1"
9797
},
9898
"description": "Duck-UI is a web-based interface for interacting with DuckDB, a high-performance analytical database system. This project leverages DuckDB's WebAssembly (WASM) capabilities to provide a seamless and efficient user experience directly in the browser.",

src/components/workspace/SqlTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const TableErrorFallback = ({ error, resetErrorBoundary }: FallbackProps) => (
2222
<AlertTriangle className="mx-auto mb-4 text-destructive" size={32} />
2323
<h3 className="text-sm font-medium mb-2">Failed to render table</h3>
2424
<p className="text-xs text-muted-foreground mb-4">
25-
{error.message || "An error occurred while displaying the results."}
25+
{error instanceof Error ? error.message : "An error occurred while displaying the results."}
2626
</p>
2727
<button
2828
onClick={resetErrorBoundary}

src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const ErrorFallback = ({ error, resetErrorBoundary }: FallbackProps) => (
3838
<AlertTriangle className="mx-auto mb-4 text-destructive" size={48} />
3939
<h2 className="text-xl font-semibold mb-2">Something went wrong</h2>
4040
<p className="text-muted-foreground mb-4 text-sm">
41-
{error.message || "An unexpected error occurred while rendering the application."}
41+
{error instanceof Error ? error.message : "An unexpected error occurred while rendering the application."}
4242
</p>
4343
<button
4444
onClick={resetErrorBoundary}

0 commit comments

Comments
 (0)