diff --git a/src/routes/berrydash/splash-text/get.ts b/src/routes/berrydash/splash-text/get.ts index 5015bdd..e15ca51 100644 --- a/src/routes/berrydash/splash-text/get.ts +++ b/src/routes/berrydash/splash-text/get.ts @@ -49,7 +49,7 @@ export const handler = async (context: Context) => { result.map(v => { const data = v v.content = atob(v.content) - if (v.attributes) v.attributes = JSON.parse(v.attributes) + v.attributes = v.attributes ? JSON.parse(v.attributes) : [] return data }) )