diff --git a/app/containers/Alarms/index.js b/app/containers/Alarms/index.js
index 5218731..90ab355 100644
--- a/app/containers/Alarms/index.js
+++ b/app/containers/Alarms/index.js
@@ -31,6 +31,7 @@ const Alarms = () => {
const { customerId } = useContext(UserContext);
const { loading, error, data, refetch, fetchMore } = useQuery(GET_ALL_ALARMS, {
variables: { customerId },
+ errorPolicy: 'all',
});
const handleOnReload = () => {
@@ -73,9 +74,10 @@ const Alarms = () => {
return ;
}
- if (error) {
+ if (error && !data?.getAllAlarms?.items) {
return ;
}
+
return (