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

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


The following commit(s) were added to refs/heads/main by this push:
     new 9fc2704c NIFI-13915 Corrected component selected scroll handling
9fc2704c is described below

commit 9fc2704c38aabac8e8038019e99d1112b29dba5c
Author: exceptionfactory <[email protected]>
AuthorDate: Mon Nov 4 14:16:30 2024 -0600

    NIFI-13915 Corrected component selected scroll handling
---
 themes/nifi/layouts/section/components.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/themes/nifi/layouts/section/components.html 
b/themes/nifi/layouts/section/components.html
index 4e355ce4..e51b5b84 100644
--- a/themes/nifi/layouts/section/components.html
+++ b/themes/nifi/layouts/section/components.html
@@ -118,7 +118,9 @@
 
       <script type="text/javascript">
         var componentSelected = document.getElementById('component-selected');
-        componentSelected.scrollIntoView();
+        if (componentSelected) {
+            componentSelected.scrollIntoView();
+        }
       </script>
     </div>
 

Reply via email to