PropTypes and refactoring
This commit is contained in:
@@ -68,7 +68,7 @@ class MountItems extends IPCContainer {
|
||||
|
||||
componentWillUnmount() {
|
||||
for (const provider in this.state.RetryItems) {
|
||||
if (this.state.RetryItems.hasOwnProperty(provider)) {
|
||||
if (Object.prototype.hasOwnProperty.call(this.state.RetryItems, provider)) {
|
||||
this.cancelRetryMount(provider);
|
||||
}
|
||||
}
|
||||
@@ -387,7 +387,7 @@ class MountItems extends IPCContainer {
|
||||
let retryList = [];
|
||||
let retryCount = 0;
|
||||
for (const provider in this.state.RetryItems) {
|
||||
if (this.state.RetryItems.hasOwnProperty(provider)) {
|
||||
if (Object.prototype.hasOwnProperty.call(this.state.RetryItems, provider)) {
|
||||
if (this.state.RetryItems[provider].RetryMessage) {
|
||||
retryList.push(
|
||||
<p key={'rl_' + retryList.length}>{this.state.RetryItems[provider].RetryMessage}</p>
|
||||
|
||||
Reference in New Issue
Block a user