diff --git a/src/components/ClassMethod.vue b/src/components/ClassMethod.vue
index a910b6dac..c9359c092 100644
--- a/src/components/ClassMethod.vue
+++ b/src/components/ClassMethod.vue
@@ -52,13 +52,15 @@
+
+
@@ -70,8 +72,8 @@
v-for="rtrn in method.returns.types"
:key="typeKey(rtrn)"
:names="rtrn"
- :variable="rtrn.variable"
- :nullable="rtrn.nullable"
+ :variable="method.returns.variable"
+ :nullable="method.returns.nullable"
/>
@@ -146,11 +148,10 @@ const deprecatedDescription = computed(() =>
markdown(convertLinks(props.method.deprecated, docs.value, router, route))
: '',
);
-const returnDescription = computed(() =>
- markdown(
+const returnDescription = computed(() =>markdown(
// @ts-expect-error
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
- convertLinks(props.method.returns?.[0]?.description, docs.value, router, route) ?? '',
+ convertLinks(props.method.returns?.[0]?.description || props.method.returns?.description, docs.value, router, route) ?? '',
),
);
const params = computed(() => (props.method.params ? props.method.params.filter((p) => !p.name.includes('.')) : null));