|
@@ -49,7 +49,7 @@ class HtmlDocument extends React.Component {
|
49
|
49
|
this.setState({isVisible: false})
|
50
|
50
|
break
|
51
|
51
|
case 'html-documents_reloadContent':
|
52
|
|
- this.setState(prev => ({content: {...prev.content, ...data}}))
|
|
52
|
+ this.setState(prev => ({content: {...prev.content, ...data}, isVisible: true}))
|
53
|
53
|
}
|
54
|
54
|
}
|
55
|
55
|
|
|
@@ -196,7 +196,7 @@ class HtmlDocument extends React.Component {
|
196
|
196
|
|
197
|
197
|
handleFetchResult(await fetchResultSaveEditStatus)
|
198
|
198
|
.then(resSave => {
|
199
|
|
- if (resSave.apiResponse.status !== 204) { // 204 no content so dont take status from resSave.apiResponse.status
|
|
199
|
+ if (resSave.status !== 204) { // 204 no content so dont take status from resSave.apiResponse.status
|
200
|
200
|
console.warn('Error saving html-document comment. Result:', resSave, 'content:', content, 'config:', config)
|
201
|
201
|
} else {
|
202
|
202
|
this.loadContent()
|