Skip to content

Commit

Permalink
fix: 0 desired routing count in endpoint edit page
Browse files Browse the repository at this point in the history
  • Loading branch information
yomybaby committed Oct 23, 2024
1 parent cf26e16 commit 0a3e496
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion react/src/components/BAILink.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createStyles } from 'antd-style';
import { X } from 'lucide-react';
import React from 'react';
import { Link, LinkProps } from 'react-router-dom';

Expand Down
2 changes: 1 addition & 1 deletion react/src/components/ServiceLauncherPageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ const ServiceLauncherPageContent: React.FC<ServiceLauncherPageContentProps> = ({
serviceName: endpoint?.name,
resourceGroup: endpoint?.resource_group,
allocationPreset: 'custom',
desiredRoutingCount: endpoint?.desired_session_count || 1,
desiredRoutingCount: endpoint?.desired_session_count ?? 1,
// FIXME: memory doesn't applied to resource allocation
resource: {
cpu: parseInt(JSON.parse(endpoint?.resource_slots)?.cpu),
Expand Down

0 comments on commit 0a3e496

Please sign in to comment.