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