Skip to content

Commit

Permalink
[#noissue] fix: instance count bug when it is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
BillionaireDY authored and binDongKim committed Jun 25, 2024
1 parent 00a8c7b commit 73c5a98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ export const FilteredMapPage = ({}: FilteredMapPageProps) => {
) : (
<>
{serverMapCurrentTarget?.type === 'node' &&
(currentTargetData as GetServerMap.NodeData).instanceCount ? (
(currentTargetData as GetServerMap.NodeData)?.instanceCount ? (
<div className="flex items-center h-12 py-2.5 px-4">
<Button
className="px-2 py-1 text-xs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export const ServerMapPage = ({}: ServermapPageProps) => {
) : (
<>
{serverMapCurrentTarget.type === 'node' &&
(currentTargetData as GetServerMap.NodeData).instanceCount ? (
(currentTargetData as GetServerMap.NodeData)?.instanceCount ? (
<div className="flex items-center h-12 py-2.5 px-4">
<Button
className="px-2 py-1 text-xs"
Expand Down

0 comments on commit 73c5a98

Please sign in to comment.