Fixes for tests
This commit is contained in:
@@ -30,7 +30,8 @@ function createHomeStore() {
|
||||
const { subscribe, set, update } = writable<HomeState>(initialState);
|
||||
|
||||
async function loadHomeSections() {
|
||||
update(s => ({ ...s, isLoading: true, error: null }));
|
||||
// Only show loading spinner when no data is available yet
|
||||
update(s => ({ ...s, isLoading: s.heroItems.length === 0 && s.latestItems.length === 0, error: null }));
|
||||
|
||||
try {
|
||||
const repo = auth.getRepository();
|
||||
|
||||
Reference in New Issue
Block a user