-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/date search #8
base: master
Are you sure you want to change the base?
Conversation
} | ||
|
||
export default class SearchContainer extends Component<ContainerProps, ContainerState> { | ||
private dataSourceHelper: DataSourceHelper; | ||
private navigationHandler: object; | ||
private connections: object[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest initializing connections array upon declaration like private connections: object[] = []
to get rid of line 54
if (this.state.alertMessage) { | ||
this.setState({ alertMessage: "" }); | ||
} | ||
} else if (searchNode.value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
searchNode
is HTMLInputElement | undefined
i recommend to change to else if (searchNode && searchNode.value) {
private widgetDOM: HTMLElement; | ||
private searchByDate: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
searchByDate
has no initializer and is not definitely assigned in the constructor i suggest you assign it an initial value
private searchByDate = false;
} | ||
|
||
export default class SearchContainer extends Component<ContainerProps, ContainerState> { | ||
private dataSourceHelper: DataSourceHelper; | ||
private navigationHandler: object; | ||
private connections: object[]; | ||
private widgetDOM: HTMLElement; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
widgetDOM
has no initializer and is not definitely assigned in the constructor i suggest you assign it an initial value
or make it optional and same applies to dataSourceHelper
@@ -245,17 +245,36 @@ export default class SearchContainer extends Component<ContainerProps, Container | |||
}); | |||
} | |||
|
|||
private getEntityAttribute = (attributePath) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Param attributePath
must have a data type
Codecov Report
@@ Coverage Diff @@
## master #8 +/- ##
=======================================
Coverage 86.75% 86.75%
=======================================
Files 12 12
Lines 468 468
Branches 119 119
=======================================
Hits 406 406
Misses 62 62 Continue to review full report at Codecov.
|
cb2d3ca
to
20758e5
Compare
No description provided.