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:
Joshen Lim authored and GitHub committed 2023-04-25 01:46:41 +08:00
commit ff6ea2ad48
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>
)}