Simplify error catching

This commit is contained in:
Michael Shamoon committed 2022-11-18 15:24:07 -08:00
1 parent 00163d2f44
commit 8a783ba9f6
41 files changed
+93 -113

No files matched your search

+2 -3
View File
@@ -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) {