muba-posting 6.0.21 → 6.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Posting.js +9 -8
  2. package/package.json +1 -1
package/Posting.js CHANGED
@@ -351,6 +351,7 @@ export default class Posting extends React.Component {
351
351
  if (params) {
352
352
  await this.setState({ params: params });
353
353
  }
354
+ await this.setState({ prevViews: [] })
354
355
  break;
355
356
  case Views.EDIT_SELECTOR:
356
357
  await this.setState({ prevViews: [] })
@@ -381,15 +382,15 @@ export default class Posting extends React.Component {
381
382
  routes: routes
382
383
  });
383
384
  });
384
- }
385
- } else {
386
- const prevViews = [...this.state.prevViews];
385
+ } else {
386
+ const prevViews = [...this.state.prevViews];
387
387
 
388
- prevViews.shift();
388
+ prevViews.shift();
389
389
 
390
- const view = this.state.prevViews[0];
391
- await this.setState({ prevViews: prevViews });
392
- this._updateCurrentScreen(view);
390
+ const view = this.state.prevViews[0];
391
+ await this.setState({ prevViews: prevViews });
392
+ this._updateCurrentScreen(view);
393
+ }
393
394
  }
394
395
  }
395
396
 
@@ -621,7 +622,7 @@ export default class Posting extends React.Component {
621
622
  showTopBar={() => this.props.showTopBar()}
622
623
  hideTopBar={() => this.props.hideTopBar()}
623
624
  close={this.goBack}
624
- goBack={() => this.setState({ view: Views.PREVIEW }, () => this.goBack())} />
625
+ goBack={() => this.goBack()} />
625
626
  :
626
627
  null
627
628
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muba-posting",
3
- "version": "6.0.21",
3
+ "version": "6.0.22",
4
4
  "description": "Posting",
5
5
  "main": "Posting.js",
6
6
  "scripts": {