mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-24 15:09:49 +03:00
Fix lint errors
This commit is contained in:
parent
26dfcfd1dc
commit
dcce245a66
|
@ -85,12 +85,10 @@ export function getTooltipString(
|
||||||
const spaces2nbsp = replace(/\s{2}/g, spacer(new Array(indentationSize)));
|
const spaces2nbsp = replace(/\s{2}/g, spacer(new Array(indentationSize)));
|
||||||
const json2html = pipe(sortAndSerialize, cr2br, spaces2nbsp);
|
const json2html = pipe(sortAndSerialize, cr2br, spaces2nbsp);
|
||||||
|
|
||||||
const children = (node as any).children || (node as any)._children;
|
const children = node.children || node._children;
|
||||||
|
|
||||||
if (typeof (node as any).value !== 'undefined')
|
if (typeof node.value !== 'undefined') return json2html(node.value);
|
||||||
return json2html((node as any).value);
|
if (typeof node.object !== 'undefined') return json2html(node.object);
|
||||||
if (typeof (node as any).object !== 'undefined')
|
|
||||||
return json2html((node as any).object);
|
|
||||||
if (children && children.length)
|
if (children && children.length)
|
||||||
return `childrenCount: ${(children as unknown[]).length}`;
|
return `childrenCount: ${(children as unknown[]).length}`;
|
||||||
return 'empty';
|
return 'empty';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user