Skip to content

Commit

Permalink
Merge pull request #3114 from wordpress-mobile/issue/13015-remove-sta…
Browse files Browse the repository at this point in the history
…le-products

[Woo POS][non-simple products] Remove empty filters condition from deleting stale products from database
  • Loading branch information
AnirudhBhat authored Nov 29, 2024
2 parents b1086fc + 294bf7c commit 3d45586
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1604,8 +1604,7 @@ class WCProductStore @Inject constructor(
if (forceRefresh &&
offset == 0 &&
includedProductIds.isEmpty() &&
excludedProductIds.isEmpty() &&
filterOptions.isEmpty()
excludedProductIds.isEmpty()
) {
productStorageHelper.deleteProductsForSite(site)
}
Expand Down

0 comments on commit 3d45586

Please sign in to comment.