The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix small wrong logic in ActionBar
Joshen Limd0786d84a27a
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsxindex 7707f653d1e..c4b5ba2a49c 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx@@ -4,6 +4,7 @@ import { Button } from '@supabase/ui'interface ActionBarProps {loading?: booleandisableApply?: boolean+ hideApply?: booleanchildren?: anyapplyButtonLabel?: stringbackButtonLabel?: string@@ -13,6 +14,7 @@ interface ActionBarProps {const ActionBar: FC<ActionBarProps> = ({loading = false,disableApply = false,+ hideApply = false,children = undefined,applyButtonLabel = 'Apply',backButtonLabel = 'Back',@@ -48,12 +50,14 @@ const ActionBar: FC<ActionBarProps> = ({>{applyButtonLabel}</Button>- ) : (+ ) : !hideApply ? (// New solution, when using the Form component, loading is handled by the Form itself// Does not require applyFunction() callback<Button size="small" disabled={disableApply} loading={loading}>{applyButtonLabel}</Button>+ ) : (+ <div />)}</div>)diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ReferenceRowViewer.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ReferenceRowViewer.tsxindex 64b27610a4a..efbf737e6f3 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ReferenceRowViewer.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ReferenceRowViewer.tsx@@ -44,7 +44,7 @@ const ReferenceRowViewer: FC<Props> = ({ visible, referenceRow, closePanel }) =>}hideFooter={false}onCancel={closePanel}- customFooter={<ActionBar backButtonLabel="Close" closePanel={closePanel} />}+ customFooter={<ActionBar hideApply backButtonLabel="Close" closePanel={closePanel} />}><SidePanel.Content><div className="py-6">