You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by sc...@apache.org on 2020/09/14 14:51:24 UTC

[nifi] 03/03: NIFI-7742: remove defined and null check

This is an automated email from the ASF dual-hosted git repository.

scottyaslan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git

commit dc4daa29233a52e172b1e644ebda575b5f9e4679
Author: Shane Ardell <sh...@gmail.com>
AuthorDate: Fri Sep 11 17:21:20 2020 -0400

    NIFI-7742: remove defined and null check
    
    This closes #4524
    
    Signed-off-by: Scott Aslan <sc...@gmail.com>
---
 .../canvas/controllers/nf-ng-canvas-flow-status-controller.js  | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/controllers/nf-ng-canvas-flow-status-controller.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/controllers/nf-ng-canvas-flow-status-controller.js
index 5595803..4de9712 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/controllers/nf-ng-canvas-flow-status-controller.js
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/controllers/nf-ng-canvas-flow-status-controller.js
@@ -319,13 +319,11 @@
                                     break;
                                 case 'controller service':
                                     var group = item.parentGroup;
-                                    if (nfCommon.isDefinedAndNotNull(group.id)) {
-                                        nfProcessGroup.enterGroup(group.id).done(function () {
-                                            nfProcessGroupConfiguration.showConfiguration(group.id).done(function () {
-                                                nfProcessGroupConfiguration.selectControllerService(item.id);
-                                            });
+                                    nfProcessGroup.enterGroup(group.id).done(function () {
+                                        nfProcessGroupConfiguration.showConfiguration(group.id).done(function () {
+                                            nfProcessGroupConfiguration.selectControllerService(item.id);
                                         });
-                                    }
+                                    });
                                     break;
                                 default:
                                     var group = item.parentGroup;