analytics: avoid error log when there are no handlers
This commit is contained in:
parent
3da1b65757
commit
53281c2d42
@ -117,7 +117,9 @@ export function createHandlers({ getState }: { getState: Function }) {
|
|||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
analytics.dispose();
|
analytics.dispose();
|
||||||
logger.error(e);
|
if (handlers.length !== 0) {
|
||||||
|
logger.error(e);
|
||||||
|
}
|
||||||
|
|
||||||
return [];
|
return [];
|
||||||
}));
|
}));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user