Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ export const ChartScatter: React.FunctionComponent<ChartScatterProps> = ({

// bubbleProperty is only considered if the size prop is undefined, therefore set
// default size function only if bubbleProperty is not set.
if (typeof rest.size === "undefined" && typeof rest.bubbleProperty === "undefined") {
if (typeof rest.size === 'undefined' && typeof rest.bubbleProperty === 'undefined') {
rest.size = ({ active }) => (active ? ChartScatterStyles.activeSize : ChartScatterStyles.size);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export const TableTreeNoInset: React.FunctionComponent = () => {
onCollapse: () => {},
onToggleRowDetails: () => {},
onCheckChange: (_event, isChecking) => {
setSelectedNodeNames(prevSelected => {
const otherSelectedNodeNames = prevSelected.filter(name => name === node.name);
setSelectedNodeNames((prevSelected) => {
const otherSelectedNodeNames = prevSelected.filter((name) => name === node.name);
return !isChecking ? otherSelectedNodeNames : [...otherSelectedNodeNames, node.name];
});
},
Expand All @@ -89,9 +89,7 @@ export const TableTreeNoInset: React.FunctionComponent = () => {
};

const childRows =
node.children && node.children.length
? renderRows(node.children, level + 1, 1, rowIndex + 1, isHidden)
: [];
node.children && node.children.length ? renderRows(node.children, level + 1, 1, rowIndex + 1, isHidden) : [];

return [
<TreeRowWrapper key={node.name} row={{ props: treeRow.props }}>
Expand Down