Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: fix labelling for management api search items (#19488)

Charisb9b7595290b5
diff --git a/apps/docs/scripts/search/sources/reference-doc.ts b/apps/docs/scripts/search/sources/reference-doc.ts
index 789f52d418c..5645c0cd480 100644
--- a/apps/docs/scripts/search/sources/reference-doc.ts
+++ b/apps/docs/scripts/search/sources/reference-doc.ts
@@ -150,11 +150,14 @@ export class OpenApiReferenceSource extends ReferenceSource<enrichedOperation> {
}
extractSubtitle() {
- return typeof this.specSection.description === 'string' ? this.specSection.description : ''
+ return `${this.meta.title}: ${this.specSection.description}`
}
extractTitle() {
- return `${this.meta.title}: ${this.specSection.operation}`
+ return (
+ this.specSection.summary ||
+ (typeof this.meta.title === 'string' ? this.meta.title : this.specSection.operation)
+ )
}
extractIndexedContent(): string {