Kaynağa Gözat

BuyPage - Timeshare - fixed duplication

master
Kobus 5 yıl önce
ebeveyn
işleme
d5589d81a3
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2
    1
      src/store/modules/timeshare/buyPage.js

+ 2
- 1
src/store/modules/timeshare/buyPage.js Dosyayı Görüntüle

25
       commit,
25
       commit,
26
       dispatch,
26
       dispatch,
27
     }) {
27
     }) {
28
+      commit('clearDetailed');
28
       axios.get(
29
       axios.get(
29
         'https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/regions/list/ZA/',
30
         'https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/regions/list/ZA/',
30
       )
31
       )
45
       if (region) {
46
       if (region) {
46
         axios
47
         axios
47
           .get(`https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/${
48
           .get(`https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/${
48
-            region.regionCode }/`)
49
+            region.regionCode}/`)
49
           .then(result => commit('addDetailed', {
50
           .then(result => commit('addDetailed', {
50
             id: region.id,
51
             id: region.id,
51
             regionCode: region.regionCode,
52
             regionCode: region.regionCode,

Loading…
İptal
Kaydet