rfellows commented on code in PR #10383:
URL: https://github.com/apache/nifi/pull/10383#discussion_r2403204186
##########
nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/items/flow/import-from-registry/import-from-registry.component.ts:
##########
@@ -195,8 +195,8 @@ export class ImportFromRegistry extends CloseOnEscapeDialog
implements OnInit {
registryChanged(registryId: string): void {
this.supportsBranching =
this.clientBranchingSupportMap.get(registryId) || false;
+ this.clearBranches();
if (this.supportsBranching) {
- this.clearBranches();
this.loadBranches(registryId);
} else {
this.clearBuckets();
Review Comment:
Moving the `clearBranches` call outside of the conditional affords us the
opportunity to forgo calling `clearBuckets` here since `clearBranches` will
call `clearBuckets`.
```suggestion
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]