mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +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>
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
{isNullable && (
|
{isNullable && (
|
||||||
<Button type="default" size="tiny" onClick={() => saveChanges(null)}>
|
<Button
|
||||||
|
as="div"
|
||||||
|
htmlType="button"
|
||||||
|
type="default"
|
||||||
|
size="tiny"
|
||||||
|
onClick={() => saveChanges(null)}
|
||||||
|
>
|
||||||
Set to NULL
|
Set to NULL
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in new issue
Block a user