You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2021/01/22 18:56:21 UTC

[GitHub] [incubator-pinot] tejasajmera commented on a change in pull request #6472: [TE]frontend - Activate the composite anomalies route

tejasajmera commented on a change in pull request #6472:
URL: https://github.com/apache/incubator-pinot/pull/6472#discussion_r562841868



##########
File path: thirdeye/thirdeye-frontend/app/pods/manage/explore/route.js
##########
@@ -106,16 +116,16 @@ export default Route.extend(AuthenticatedRouteMixin, {
       notifications.error('Retrieving subscription groups failed.', error, toastOptions);
     }
 
-    let subscribedGroups = "";
+    let subscribedGroups = '';
     if (typeof get(this, 'subscriptionGroups') === 'object' && get(this, 'subscriptionGroups').length > 0) {
       const groups = get(this, 'subscriptionGroups');
       for (let key in groups) {
-        if (groups.hasOwnProperty(key)) {
+        if (key in groups) {
           let group = groups[key];

Review comment:
       I've removed the `key in groups` but `for-each` cannot be used as we are working with object, not array.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org