mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Hide irrelevant errors from echarts zoom (#23992)
This commit is contained in:
parent
dae991dc89
commit
87dfed4beb
@ -29,21 +29,14 @@ export const loggingMixin = <T extends Constructor<HassBaseEl>>(
|
||||
return;
|
||||
}
|
||||
if (
|
||||
// !__DEV__ &&
|
||||
ev.message.includes("ResizeObserver loop limit exceeded") ||
|
||||
(!__DEV__ &&
|
||||
ev.message.includes("ResizeObserver loop limit exceeded")) ||
|
||||
ev.message.includes(
|
||||
"ResizeObserver loop completed with undelivered notifications"
|
||||
) ||
|
||||
(ev.error.stack.includes("echarts") &&
|
||||
(ev.message.includes(
|
||||
"Cannot read properties of undefined (reading 'hostedBy')"
|
||||
) ||
|
||||
ev.message.includes(
|
||||
"Cannot read properties of undefined (reading 'scale')"
|
||||
) ||
|
||||
ev.message.includes(
|
||||
"Cannot read properties of null (reading 'innerHTML')"
|
||||
)))
|
||||
(ev.error.stack.includes("DataZoomModel") &&
|
||||
(ev.message.includes("undefined") ||
|
||||
ev.message.includes("Cannot read properties of null")))
|
||||
) {
|
||||
ev.preventDefault();
|
||||
ev.stopImmediatePropagation();
|
||||
|
Loading…
x
Reference in New Issue
Block a user