Skip to content

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

Add set to NULL action in TextEditor

Joshen Lim18def7063171
diff --git a/studio/components/grid/components/editor/TextEditor.tsx b/studio/components/grid/components/editor/TextEditor.tsx
index 2b0fa077dc3..d80a4953a8b 100644
--- a/studio/components/grid/components/editor/TextEditor.tsx
+++ b/studio/components/grid/components/editor/TextEditor.tsx
@@ -2,7 +2,7 @@ import { useState, useCallback } from 'react'
import { EditorProps } from '@supabase/react-data-grid'
import { useTrackedState } from '../../store'
import { BlockKeys, MonacoEditor, NullValue, EmptyValue } from '../common'
-import { Popover } from 'ui'
+import { Button, Popover } from 'ui'
export function TextEditor<TRow, TSummaryRow = unknown>({
row,
@@ -59,6 +59,11 @@ export function TextEditor<TRow, TSummaryRow = unknown>({
<p className="text-xs text-scale-1100">Cancel changes</p>
</div>
</div>
+ <div className="space-y-1">
+ <Button type="default" size="tiny" onClick={() => saveChanges(null)}>
+ Set to NULL
+ </Button>
+ </div>
</div>
</BlockKeys>
}