@swiss-ai-hub/web 0.297.4 → 0.297.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app.vue +10 -3
  2. package/package.json +1 -1
package/app.vue CHANGED
@@ -48,9 +48,16 @@ client.setConfig({
48
48
  if (!route.params.tenant) return
49
49
 
50
50
  const rawDetail = response._data?.detail
51
- const message = typeof rawDetail === 'object' && rawDetail?.message
52
- ? rawDetail.message
53
- : rawDetail
51
+
52
+ let message = rawDetail
53
+
54
+ if (Array.isArray(rawDetail) && rawDetail.every(e => typeof e.msg === 'string')) {
55
+ message = rawDetail.map(e => e.msg).join('\n')
56
+ }
57
+ else if (typeof rawDetail === 'object' && rawDetail?.message) {
58
+ message = rawDetail.message
59
+ }
60
+
54
61
  toast.add({
55
62
  severity: 'error',
56
63
  summary: t(`http_error.code.${response.status}`),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "bbv Software Services AG (https://www.bbv.ch)",
5
5
  "type": "module",
6
- "version": "0.297.4",
6
+ "version": "0.297.5",
7
7
  "description": "Swiss AI Hub - Admin & Management UI (Nuxt 3 layer)",
8
8
  "main": "./nuxt.config.ts",
9
9
  "repository": {