mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Simplify error catching
This commit is contained in:
@@ -13,9 +13,8 @@ export default function Component({ service }) {
|
||||
all: 1,
|
||||
});
|
||||
|
||||
if (containersError || containersData?.error) {
|
||||
const finalError = containersError ?? containersData.error;
|
||||
return <Container error={finalError} />;
|
||||
if (containersError) {
|
||||
return <Container error={containersError} />;
|
||||
}
|
||||
|
||||
if (!containersData) {
|
||||
|
||||
Reference in New Issue
Block a user