From 1b1987f28df0eaf3f47fc5833e17a803f7ba1b8c Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Tue, 24 Jun 2025 23:04:37 -0500 Subject: make frontend work with backend and wait until album response recieved before initializing albums page. extra checks around config --- static/src/albums.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'static/src/albums.js') diff --git a/static/src/albums.js b/static/src/albums.js index b7523d9..0ac9195 100644 --- a/static/src/albums.js +++ b/static/src/albums.js @@ -69,6 +69,8 @@ class Album { // create albums const albumsResponse = await apiConnector.fetchAlbums() + if (!albumsResponse.length) + return false for (const res of albumsResponse) new Album(res) -- cgit v1.2.3