muba-posting 4.1.25 → 4.1.26

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 +3 -1
  2. package/package.json +1 -1
package/Posting.js CHANGED
@@ -276,8 +276,10 @@ export default class Posting extends React.Component {
276
276
  async loadAd() {
277
277
  const bddAd = await this.getAd(this.state.adId);
278
278
  if (bddAd.status === 'PENDING_CREATED') {
279
+ const languages = bddAd?.languages.length > 0 ? bddAd?.languages : this.state.postingAd.languages
280
+ const languageId = languages[0].language;
279
281
  await this.setState({
280
- postingAd: { ...this.state.postingAd, ...bddAd },
282
+ postingAd: { ...this.state.postingAd, ...bddAd, languageId: languageId, languages: languages },
281
283
  isLoading: false,
282
284
  adId: null,
283
285
  originView: Views.PUBLISH_1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muba-posting",
3
- "version": "4.1.25",
3
+ "version": "4.1.26",
4
4
  "description": "Posting",
5
5
  "main": "Posting.js",
6
6
  "scripts": {