The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix ref issue on AlertError component (#26602)
Joshen Lim82a0ad93c8ec
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsxindex 139ed61b913..6accde06aae 100644--- a/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx+++ b/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx@@ -168,7 +168,7 @@ export const QueryIndexes = ({ selectedRow }: QueryIndexesProps) => {{isLoadingIndexAdvisorResult && <GenericSkeletonLoader />}{isErrorIndexAdvisorResult && (<AlertError- ref={project?.ref}+ projectRef={project?.ref}error={indexAdvisorError}subject="Failed to retrieve result from index advisor"/>diff --git a/apps/studio/components/ui/AlertError.tsx b/apps/studio/components/ui/AlertError.tsxindex 619943b3969..c340d2c7075 100644--- a/apps/studio/components/ui/AlertError.tsx+++ b/apps/studio/components/ui/AlertError.tsx@@ -10,7 +10,7 @@ import {import { WarningIcon } from 'ui-patterns/Icons/StatusIcons'export interface AlertErrorProps {- ref?: string+ projectRef?: stringsubject?: stringerror?: ResponseError | nullclassName?: string@@ -18,11 +18,11 @@ export interface AlertErrorProps {// [Joshen] To standardize the language for all error UIs-const AlertError = ({ ref, subject, error, className }: AlertErrorProps) => {+const AlertError = ({ projectRef, subject, error, className }: AlertErrorProps) => {const subjectString = subject?.replace(/ /g, '%20')let href = `/support/new?category=dashboard_bug`- if (ref) href += `&ref=${ref}`+ if (projectRef) href += `&ref=${projectRef}`if (subjectString) href += `&subject=${subjectString}`if (error) href += `&message=Error:%20${error.message}`