Skip to content

Commit

Permalink
Show routes first
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Dec 15, 2023
1 parent 26b7ee2 commit 27c4da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion karavan-designer/src/designer/KaravanDesigner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ export function KaravanDesigner(props: Props) {
let designerTab = i.kind === 'Kamelet' ? 'kamelet' : props.tab;
if (designerTab === undefined) {
const counts = CamelUi.getFlowCounts(i);
designerTab = (counts.get('routes') || 0) > 0 ? 'routes' : designerTab;
designerTab = (counts.get('rest') || 0) > 0 ? 'rest' : designerTab;
designerTab = (counts.get('beans') || 0) > 0 ? 'beans' : designerTab;
designerTab = (counts.get('routes') || 0) > 0 ? 'routes' : designerTab;
}
setTab(designerTab || 'routes')
reset();
Expand Down

0 comments on commit 27c4da6

Please sign in to comment.