mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-13 23:52:42 +00:00
now yes fixed
This commit is contained in:
@@ -79,9 +79,7 @@ const VaultPage = (props) => {
|
|||||||
|
|
||||||
if (response.ok)
|
if (response.ok)
|
||||||
updateStateWithBrews(response.body.brews, page);
|
updateStateWithBrews(response.body.brews, page);
|
||||||
} else {
|
}
|
||||||
setError('404');
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const loadTotal = async ({ title, v3, legacy }) => {
|
const loadTotal = async ({ title, v3, legacy }) => {
|
||||||
@@ -96,10 +94,11 @@ const VaultPage = (props) => {
|
|||||||
? error.response.status
|
? error.response.status
|
||||||
: error.message}`
|
: error.message}`
|
||||||
);
|
);
|
||||||
|
updateStateWithBrews([], 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.ok)
|
if (response.ok)
|
||||||
updateStateWithBrews(response.body.brews, page);
|
setTotalBrews(response.body.totalBrews);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user