Save project on tags change (#438)
* Save project on tags change * lintfix
This commit is contained in:
Родитель
dbb6a30804
Коммит
c14f7e244e
|
@ -123,11 +123,12 @@ export default class EditorPage extends React.Component<IEditorPageProps, IEdito
|
|||
}
|
||||
|
||||
private onFooterChange(footerState) {
|
||||
this.setState({
|
||||
project: {
|
||||
...this.state.project,
|
||||
tags: footerState.tags,
|
||||
},
|
||||
const project = {
|
||||
...this.state.project,
|
||||
tags: footerState.tags,
|
||||
};
|
||||
this.setState({project}, async () => {
|
||||
await this.props.actions.saveProject(project);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче