new fields in general settings

and test for password switcher
This commit is contained in:
2020-07-03 00:20:11 +02:00
parent 08c2567551
commit 3b1d85824f
4 changed files with 48 additions and 18 deletions

View File

@ -13,10 +13,6 @@ class Preview extends React.Component {
};
}
componentWillUnmount() {
this.setState({});
}
componentDidMount() {
this.setState({
previewpicture: null,
@ -30,9 +26,9 @@ class Preview extends React.Component {
fetch('/api/videoload.php', {method: 'POST', body: updateRequest})
.then((response) => response.text()
.then((result) => {
this.setState(prevState => ({
...prevState.previewpicture, previewpicture: result
}));
this.setState({
previewpicture: result
});
}));
}