Skip to content

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

Remove trimming in filterLiteral

Joshen Lim45571553e5f7
diff --git a/studio/components/grid/query/Query.utils.ts b/studio/components/grid/query/Query.utils.ts
index 652a4763688..cfb06617751 100644
--- a/studio/components/grid/query/Query.utils.ts
+++ b/studio/components/grid/query/Query.utils.ts
@@ -203,11 +203,10 @@ function isFilterSql(filter: Filter) {
function filterLiteral(value: any) {
if (typeof value === 'string') {
- const temp = value.trim()
- if (temp?.startsWith('ARRAY[') && temp?.endsWith(']')) {
- return temp
+ if (value?.startsWith('ARRAY[') && value?.endsWith(']')) {
+ return value
} else {
- return literal(temp)
+ return literal(value)
}
}
return value