reports/frontend/node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

12 lines
No EOL
382 B
JavaScript

export function reduxDevtoolsJsonStringifyReplacer(key, value) {
if (value instanceof HTMLElement) {
return "HTMLElement <".concat(value.tagName, " class=\"").concat(value.className, "\">");
}
if (value === window) {
return 'global.window';
}
if (key === 'children' && typeof value === 'object' && value !== null) {
return '<<CHILDREN>>';
}
return value;
}