Skip to content

Commit 34dd87c

Browse files
committed
Add back in constructor props
1 parent 0b224fe commit 34dd87c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/js/CheckboxTree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class CheckboxTree extends React.Component {
7777
};
7878

7979
constructor(props) {
80-
super();
80+
super(props);
8181

8282
const model = new NodeModel(props);
8383
model.flattenNodes(props.nodes);

src/js/TreeNode.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ class TreeNode extends React.Component {
4747
onClick: () => {},
4848
};
4949

50-
constructor() {
51-
super();
50+
constructor(props) {
51+
super(props);
5252

5353
this.onCheck = this.onCheck.bind(this);
5454
this.onClick = this.onClick.bind(this);
@@ -203,7 +203,6 @@ class TreeNode extends React.Component {
203203
const {
204204
checked,
205205
disabled,
206-
label,
207206
title,
208207
treeId,
209208
value,

0 commit comments

Comments
 (0)