File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ declare module "react-d3-tree" {
5
5
}
6
6
7
7
type ReactD3TreeItem = {
8
- name : string ,
8
+ name ? : string ,
9
9
attributes ?: {
10
10
[ key : string ] : string ,
11
11
} ;
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ export default class Node extends React.Component {
127
127
128
128
Node . defaultProps = {
129
129
nodeLabelComponent : null ,
130
+ name : '' ,
130
131
attributes : undefined ,
131
132
circleRadius : undefined ,
132
133
styles : {
@@ -153,7 +154,7 @@ Node.propTypes = {
153
154
onClick : T . func . isRequired ,
154
155
onMouseOver : T . func . isRequired ,
155
156
onMouseOut : T . func . isRequired ,
156
- name : T . string . isRequired ,
157
+ name : T . string ,
157
158
attributes : T . object ,
158
159
textLayout : T . object . isRequired ,
159
160
subscriptions : T . object . isRequired , // eslint-disable-line react/no-unused-prop-types
You can’t perform that action at this time.
0 commit comments