mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-19 16:14:39 +00:00
fix (admin): hide application constant from the admin config screen
This commit is contained in:
@@ -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});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user