diff --git a/app/routes/docs_.schema.tsx b/app/routes/docs_.schema.tsx index 1cbd0862f..cd831aae1 100644 --- a/app/routes/docs_.schema.tsx +++ b/app/routes/docs_.schema.tsx @@ -44,7 +44,7 @@ export default function Schema() { if (!path) throw new Error('Path is not defined.') const [showVersions, setShowVersions] = useState(false) - const { versions } = useLoaderData() + const { versions } = useLoaderData() const windowSize = useWindowSize() const isSchema = path.endsWith('.schema.json') @@ -75,13 +75,13 @@ export default function Schema() {

Versions

- {versions.map((x: { name: string; ref: string }) => ( -
+ {versions.map(({ name, ref }) => ( +
setShowVersions(!setShowVersions)} > - {x.name} + {name || ref}
))}