From 08bb78a817deb8ae46528193be073faf1e94ac01 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 27 Mar 2019 13:21:54 -0300 Subject: [PATCH] Fixed JSHint warnings on marketplace suggestions script Fixes the follow error: ``` assets/js/admin/marketplace-suggestions.js 278 | return ! _.contains( marketplace_suggestions.active_plugins, promo['product'] ); ^ ['product'] is better written in dot notation. ``` --- assets/js/admin/marketplace-suggestions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/admin/marketplace-suggestions.js b/assets/js/admin/marketplace-suggestions.js index 61bc08f2f87..1fdc0e2e80f 100644 --- a/assets/js/admin/marketplace-suggestions.js +++ b/assets/js/admin/marketplace-suggestions.js @@ -275,7 +275,7 @@ // hide promos for things the user already has installed promos = _.filter( promos, function( promo ) { - return ! _.contains( marketplace_suggestions.active_plugins, promo['product'] ); + return ! _.contains( marketplace_suggestions.active_plugins, promo.product ); } ); // hide promos that are not applicable based on user's installed extensions