fix (admin): hide application constant from the admin config screen

This commit is contained in:
Mickael Kerjean
2019-11-11 22:55:31 +11:00
parent 5496796a12
commit 9430b38ee7
+4 -2
View File
@@ -12,8 +12,10 @@ export class ConfigPage extends React.Component {
}
componentWillMount(){
Config.all().then((log) => {
this.setState({form: log});
Config.all().then((c) => {
delete c.constant; // The constant key contains read only global variable that are
// application wide truth => not editable from the admin area
this.setState({form: c});
});
}