diff --git a/apps/website/src/components/model/method/Method.tsx b/apps/website/src/components/model/method/Method.tsx index 8d4306a5d..dd6405235 100644 --- a/apps/website/src/components/model/method/Method.tsx +++ b/apps/website/src/components/model/method/Method.tsx @@ -5,6 +5,7 @@ import type { ApiMethodSignature, } from '@microsoft/api-extractor-model'; import dynamic from 'next/dynamic'; +import { Fragment } from 'react'; import { MethodDocumentation } from './MethodDocumentation'; import { MethodHeader } from './MethodHeader'; @@ -20,17 +21,14 @@ export function Method({ if (method.getMergedSiblings().length > 1) { // We have overloads, use the overload switcher, but render // each overload node on the server. - const overloads = method - .getMergedSiblings() - .map((sibling, idx) => ( - - )); + const overloads = method.getMergedSiblings().map((sibling, idx) => ( + + + + + )); - return ( - - - - ); + return ; } // We have just a single method, render it on the server.