Skip to content

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

Add guard in TabSqlQuery (https://sentry.io/organizations/supabase/issues/2914836389)

Joshen Lim381a023859eb
diff --git a/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js b/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js
index c95f0344200..927179bfb1a 100644
--- a/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js
+++ b/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js
@@ -567,7 +567,7 @@ const Results = ({ results }) => {
}
function onCopyCell() {
- if (cellPosition) {
+ if (columns && cellPosition) {
const { idx, rowIdx } = cellPosition
const colKey = columns[idx].key
const cellValue = results[rowIdx]?.[colKey] ?? ''