Skip to content

Commit

Permalink
Merge pull request #586 from niyajali/qodana-ci-cd
Browse files Browse the repository at this point in the history
Fixing Qodana Issues
  • Loading branch information
niyajali authored Dec 3, 2023
2 parents 54a818b + 42f4c4d commit e20a58e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ProductSettingsViewModel @Inject constructor(
val products = getProducts(event.categoryId)

if (_selectedCategory.contains(event.categoryId)) {
mSelectedItems.removeAll(products)
mSelectedItems.removeAll(products.toSet())
_selectedCategory.remove(event.categoryId)
} else {
_selectedCategory.add(event.categoryId)
Expand Down

0 comments on commit e20a58e

Please sign in to comment.