From 42dd4cfb53c42066b20843e3688420bc9af71ef8 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 22 Apr 2026 22:58:19 +0200 Subject: [PATCH] Fix App.js: guard list.find against non-array response Co-Authored-By: Claude Opus 4.7 --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index fc33b38..fa82ecd 100755 --- a/src/App.js +++ b/src/App.js @@ -188,7 +188,7 @@ function App() { async function pickBackground() { try { const res = await axios.get('/api/gmkit/list'); - const list = res.data || []; + const list = Array.isArray(res.data) ? res.data : []; if (!mounted) return; // prefer explicit deathwatch-banner.png if present const banner = list.find(f => f.name === 'deathwatch-banner.png');