Skip to content

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

Tiny patch table editor (#36131)

Joshen Lim03dcbef16bbc
diff --git a/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
index 1f2de9163cc..08ec744a22f 100644
--- a/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
@@ -131,14 +131,14 @@ export const TableGridEditor = ({
>
Close tab
</Button>
- ) : tabs.openTabs.length > 0 ? (
+ ) : openTabs.length > 0 ? (
<Button
asChild
type="default"
className="mt-2"
onClick={() => appSnap.setDashboardHistory(projectRef, 'editor', undefined)}
>
- <Link href={`/project/${projectRef}/editor/${tabs.openTabs[0].split('-')[1]}`}>
+ <Link href={`/project/${projectRef}/editor/${openTabs[0].split('-')[1]}`}>
Close tab
</Link>
</Button>