fix: multiple error
ci-api / test (push) Successful in 23m32s
ci-web / test (push) Successful in 13m52s

This commit is contained in:
Nuxgrid
2026-08-01 17:24:34 +02:00
parent a06205a608
commit 5d2a132c3c
9 changed files with 144 additions and 54 deletions
+3 -3
View File
@@ -140,7 +140,7 @@ export function Demos() {
setDetails(null)
setDetailsLoading(true)
try {
const res = await api.getDemoDetails(d.username)
const res = await api.getDemoDetails(d.namespace)
setDetails(res)
} catch (err) {
const msg = err instanceof ApiError ? err.message : 'Erreur'
@@ -156,10 +156,10 @@ export function Demos() {
useEffect(() => {
const current = demos.find((d) => d.id === expandedId)
if (!current) return
const username = current.username
const namespace = current.namespace
const id = setInterval(() => {
api
.getDemoDetails(username)
.getDemoDetails(namespace)
.then(setDetails)
.catch(() => {
/* échec silencieux : on garde le dernier état connu affiché */