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

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


The following commit(s) were added to refs/heads/main by this push:
     new 0660616864 NIFI-13284: (#8891)
0660616864 is described below

commit 0660616864df27a238363036cc2a20414c39fb3b
Author: Matt Gilman <[email protected]>
AuthorDate: Wed May 29 14:36:49 2024 -0400

    NIFI-13284: (#8891)
    
    - Only saving canvas routes that are not edit or history.
    
    This closes #8891
---
 .../nifi/src/app/pages/flow-designer/ui/canvas/canvas.component.ts    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/canvas.component.ts
 
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/canvas.component.ts
index b38327ffa6..bae0940872 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/canvas.component.ts
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/canvas.component.ts
@@ -102,7 +102,9 @@ export class Canvas implements OnInit, OnDestroy {
             .select(selectUrl)
             .pipe(takeUntilDestroyed())
             .subscribe((route) => {
-                this.storage.setItem('current-canvas-route', route);
+                if (!route.endsWith('/edit') && !route.endsWith('/history')) {
+                    this.storage.setItem('current-canvas-route', route);
+                }
             });
 
         // load the process group from the route

Reply via email to