The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: foreign row selector dnd sorts bug (#34442)
Alaister Young1f6a41e925ad
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsxindex a94ddec617f..81c1aab9b07 100644--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx@@ -1,5 +1,7 @@import { Loader2 } from 'lucide-react'import { useState } from 'react'+import { DndProvider } from 'react-dnd'+import { HTML5Backend } from 'react-dnd-html5-backend'import { useParams } from 'common'import {@@ -156,7 +158,9 @@ const ForeignRowSelector = ({<div className="flex items-center"><RefreshButton tableId={table?.id} isRefetching={isRefetching} /><FilterPopover filters={filters} onApplyFilters={onApplyFilters} />- <SortPopover sorts={sorts} onApplySorts={onApplySorts} />+ <DndProvider backend={HTML5Backend} context={window}>+ <SortPopover sorts={sorts} onApplySorts={onApplySorts} />+ </DndProvider></div><div className="flex items-center gap-x-3 divide-x">