Skip to content

Commit dfec163

Browse files
authored
fix: summary product count (#1882)
1 parent 2da3d85 commit dfec163

File tree

1 file changed

+3
-14
lines changed
  • _dev/apps/ui/src/components/product-feed/settings/summary

1 file changed

+3
-14
lines changed

_dev/apps/ui/src/components/product-feed/settings/summary/summary.vue

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,9 @@
4242
/>
4343
</template>
4444
<div
45-
v-if="productCountStatus === ProductFeedCountStatus.SUCCESS
46-
|| moduleNeedUpgradeForProductFilter"
45+
v-if="productCountStatus === ProductFeedCountStatus.SUCCESS"
4746
>
48-
{{ moduleNeedUpgradeForProductFilter
49-
? nextSyncTotalProducts
50-
: productCountToDisplay }}
47+
{{ productCountToDisplay }}
5148
</div>
5249
<b-alert
5350
v-if="productCountStatus === ProductFeedCountStatus.ERROR"
@@ -281,7 +278,6 @@ import productFeedSummaryCard from '@/components/product-feed/summary/product-fe
281278
import ProductFeedMixin from '@/components/mixins/Product-Feed-Mixin';
282279
import {ShippingSetupOption} from '@/enums/product-feed/shipping';
283280
import ActionsTypes from '@/store/modules/product-feed/actions-types';
284-
import AppGettersTypes from '@/store/modules/app/getters-types';
285281
import GetterTypes from '@/store/modules/product-feed/getters-types';
286282
import ProductFeedCountStatus from '@/enums/product-feed/product-feed-count-status';
287283
import ProductFilterMethodsSynch from '@/enums/product-feed/product-filter-methods-synch';
@@ -309,7 +305,6 @@ export default defineComponent({
309305
understandTerms: false,
310306
ProductFeedCountStatus,
311307
loadingData: true,
312-
moduleNeedUpgradeForProductFilter: false,
313308
};
314309
},
315310
computed: {
@@ -475,8 +470,6 @@ export default defineComponent({
475470
async mounted() {
476471
this.loadingData = true;
477472
478-
this.moduleNeedUpgradeForProductFilter = await this.$store.getters[`app/${AppGettersTypes.GET_MODULE_NEED_UPGRADE}`]('psxmarketingwithgoogle', undefined, '1.73.0');
479-
480473
await this.requestShopAttribute().then(() => {
481474
this.requestAttributeMapping();
482475
});
@@ -492,11 +485,7 @@ export default defineComponent({
492485
});
493486
}
494487
495-
if (!this.moduleNeedUpgradeForProductFilter) {
496-
await this.requestProductCount();
497-
} else {
498-
await this.requestTotalProductCount();
499-
}
488+
await this.requestProductCount();
500489
501490
this.loadingData = false;
502491
},

0 commit comments

Comments
 (0)