Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
chore: handle copy error object message
Faisal Amir10f3f7cea5c5
diff --git a/web-app/src/containers/dialogs/LoadModelErrorDialog.tsx b/web-app/src/containers/dialogs/LoadModelErrorDialog.tsxindex 136f13853..c3e4f95aa 100644--- a/web-app/src/containers/dialogs/LoadModelErrorDialog.tsx+++ b/web-app/src/containers/dialogs/LoadModelErrorDialog.tsx@@ -37,6 +37,16 @@ export default function LoadModelErrorDialog() {if (typeof error === 'string') return error+ if (typeof error === 'object') {+ const errorObj = error as {+ code?: string+ message: string+ details?: string+ }++ return errorObj.message+ }+if (typeof error === 'object' && 'code' in error && 'message' in error) {const errorObj = error as {code?: string