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();
|
||||||
|
if (handlers.length !== 0) {
|
||||||
logger.error(e);
|
logger.error(e);
|
||||||
|
}
|
||||||
|
|
||||||
return [];
|
return [];
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue