mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
Merge pull request #13932 from supabase/fix/hitting-enter-in-table-editor-text-cell-sets-value-to-null-if-column-is-nullable
Fix/hitting enter in table editor text cell sets value to null if column is nullable
This commit is contained in:
1 file changed
+7
-1
@@ -62,7 +62,13 @@ export function TextEditor<TRow, TSummaryRow = unknown>({
|
||||
</div>
|
||||
<div className="space-y-1">
|
||||
{isNullable && (
|
||||
<Button type="default" size="tiny" onClick={() => saveChanges(null)}>
|
||||
<Button
|
||||
as="div"
|
||||
htmlType="button"
|
||||
type="default"
|
||||
size="tiny"
|
||||
onClick={() => saveChanges(null)}
|
||||
>
|
||||
Set to NULL
|
||||
</Button>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user