Skip to content

Commit fc0f8ee

Browse files
Update ServerDetailsBlock.tsx
1 parent e80b125 commit fc0f8ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/scripts/components/server/ServerDetailsBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const ServerDetailsBlock = () => {
5151
const name = ServerContext.useStoreState(state => state.server.data!.name);
5252
const limits = ServerContext.useStoreState(state => state.server.data!.limits);
5353
const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
54-
allocation => allocation.alias + ':' + allocation.port || allocation.ip + ':' + allocation.port
54+
allocation => (allocation.alias || allocation.ip) + ':' + allocation.port
5555
)).toString();
5656

5757
const disklimit = limits.disk ? megabytesToHuman(limits.disk) : 'Unlimited';

0 commit comments

Comments
 (0)