fix(logging): don't spam empty error events

This commit is contained in:
Kalista Payne 2025-05-19 17:07:42 -05:00
parent ec78831a81
commit 126b382da1

View file

@ -34,10 +34,12 @@ export function setUpLogging () { // eslint-disable-line import/prefer-default-e
console.error('Component where it occurred:', vm);
console.error('Info:', info);
_LTracker.push({
err,
info,
});
if (err && Object.keys(err).length) {
_LTracker.push({
err,
info,
});
}
};
}
/* eslint-enable no-console */