forked from p15670423/monkey
UI: Remove userChangedConfig from ConfigurePage.js
Nothing was using this function
This commit is contained in:
parent
ef8d52b96f
commit
efe77e2150
|
@ -250,22 +250,6 @@ class ConfigurePageComponent extends AuthComponent {
|
|||
);
|
||||
}
|
||||
|
||||
userChangedConfig() {
|
||||
try {
|
||||
if (JSON.stringify(this.state.configuration) === JSON.stringify(this.initialConfig)) {
|
||||
if (Object.keys(this.state.currentFormData).length === 0 ||
|
||||
JSON.stringify(this.initialConfig[this.currentSection]) === JSON.stringify(this.state.currentFormData)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} catch (TypeError) {
|
||||
if (JSON.stringify(this.initialConfig[this.currentSection]) === JSON.stringify(this.state.currentFormData)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
setSelectedSection = (key) => {
|
||||
this.resetLastAction();
|
||||
this.updateConfigSection();
|
||||
|
|
Loading…
Reference in New Issue