UI: Remove userChangedConfig from ConfigurePage.js

Nothing was using this function
This commit is contained in:
vakarisz 2022-07-08 12:12:24 +03:00
parent ef8d52b96f
commit efe77e2150
1 changed files with 0 additions and 16 deletions

View File

@ -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();