|
@@ -42,10 +42,19 @@ export default class AttachmentList extends React.Component {
|
|
|
|
|
|
|
|
// check cache exists
|
|
// check cache exists
|
|
|
if (stateCache != null) {
|
|
if (stateCache != null) {
|
|
|
|
|
+ // restore state
|
|
|
this.setState({
|
|
this.setState({
|
|
|
...stateCache,
|
|
...stateCache,
|
|
|
isLoading: false,
|
|
isLoading: false,
|
|
|
});
|
|
});
|
|
|
|
|
+ // parse with no effect
|
|
|
|
|
+ try {
|
|
|
|
|
+ refsContext.parse();
|
|
|
|
|
+ }
|
|
|
|
|
+ catch (err) {
|
|
|
|
|
+ // do nothing
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return; // go to render()
|
|
return; // go to render()
|
|
|
}
|
|
}
|
|
|
|
|
|