The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: update key prop
Isaiah Hamiltonb885bc12e33e
diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsxindex ed53b426253..9380121ff69 100644--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx@@ -34,8 +34,8 @@ const PolicyRow: FC<Props> = ({</div><div className="flex items-center space-x-2"><p className="text-scale-1000 text-sm">Applied to:</p>- {policy.roles.map((role) => (- <code className="text-scale-1000 text-xs">{role}</code>+ {policy.roles.map((role, i) => (+ <code key={i} className="text-scale-1000 text-xs">{role}</code>))}</div></div>diff --git a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsxindex d21905bac06..a7df063df92 100644--- a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx@@ -21,10 +21,11 @@ const TemplatesList: FC<Props> = ({style={{ maxHeight: '24rem' }}><Menu type="border">- {templates.map((template) => {+ {templates.map((template, i) => {const active = selectedTemplate === templatereturn (<div+ key={i}className={'hover:bg-scale-400 border-scale-400 border-b ' +(active ? 'bg-scale-300 dark:bg-scale-500' : '')diff --git a/studio/components/interfaces/Docs/RpcContent.tsx b/studio/components/interfaces/Docs/RpcContent.tsxindex 98e88255f9b..5f23f1adc53 100644--- a/studio/components/interfaces/Docs/RpcContent.tsx+++ b/studio/components/interfaces/Docs/RpcContent.tsx@@ -65,9 +65,9 @@ const RpcContent = ({{rpcParams.length > 0 && (<div><h3 className="text-scale-1200 mt-0 px-6 capitalize">Function Arguments</h3>- {rpcParams.map((x) => {+ {rpcParams.map((x, i) => {return (- <div className="doc-section">+ <div key={i} className="doc-section"><article className="text "><Paramkey={x.name}diff --git a/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/LogsErrorRenderers.stories.tsx b/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/LogsErrorRenderers.stories.tsxindex c5c8332e2d0..944ea3b1960 100644--- a/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/LogsErrorRenderers.stories.tsx+++ b/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/LogsErrorRenderers.stories.tsx@@ -51,8 +51,9 @@ export const ErrorRenderers = () => (},}}/>,- ].map((child) => (+ ].map((child, i) => (<Alert+ key={i}variant="danger"title="Sorry! An error occured when fetching data."withIcondiff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsxindex 8513664b5a3..f791e190372 100644--- a/studio/components/interfaces/Support/SupportForm.tsx+++ b/studio/components/interfaces/Support/SupportForm.tsx@@ -342,6 +342,7 @@ const SupportForm: FC<Props> = ({ setSent }) => {<div className="flex items-center space-x-2">{uploadedDataUrls.map((x: any, idx: number) => (<div+ key={idx}style={{ backgroundImage: `url("${x}")` }}className="bg-center bg-cover bg-no-repeat h-14 w-14 rounded relative">diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.tsxindex 65e60548cef..527aea35054 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.tsx@@ -204,8 +204,8 @@ const SpreadsheetImport: FC<Props> = ({<><IconArrowRight size={14} /><p>Extra field(s):</p>- {error.data?.__parsed_extra.map((value: any) => (- <code className="text-sm">{value}</code>+ {error.data?.__parsed_extra.map((value: any, i: number) => (+ <code key={i} className="text-sm">{value}</code>))}</>)}diff --git a/studio/pages/project/[ref]/database/hooks/[id]/logs.tsx b/studio/pages/project/[ref]/database/hooks/[id]/logs.tsxindex 85e8adc49d8..2c1846ae67d 100644--- a/studio/pages/project/[ref]/database/hooks/[id]/logs.tsx+++ b/studio/pages/project/[ref]/database/hooks/[id]/logs.tsx@@ -82,9 +82,9 @@ const HookLogs: FC<any> = observer(() => {<div className="bg-bg-alt-light border-t border-b"><div className="divide-y-2 ">- {logsData?.map((log: any) => {+ {logsData?.map((log: any, i: number) => {return (- <div className="flex flex-col space-y-1 py-4 px-6">+ <div key={i} className="flex flex-col space-y-1 py-4 px-6"><div className="flex items-center justify-between"><div className="space-x-3"><p className="font-mono text-scale-1000">[{log.method}]</p>diff --git a/studio/pages/project/[ref]/logs-explorer/templates.tsx b/studio/pages/project/[ref]/logs-explorer/templates.tsxindex 1c538c2f5da..95ecbe6ce6e 100644--- a/studio/pages/project/[ref]/logs-explorer/templates.tsx+++ b/studio/pages/project/[ref]/logs-explorer/templates.tsx@@ -14,10 +14,11 @@ export const LogsTemplatesPage: NextPageWithLayout = () => {return (<div><div className="grid grid-cols-3 gap-6">- {TEMPLATES.filter((template) => template.mode === 'custom').map((template) => {+ {TEMPLATES.filter((template) => template.mode === 'custom').map((template, i) => {const [showPreview, setShowPreview] = useState(false)return (<CardButton+ key={i}title={template.label}icon={<div