Fix button behavior: Reverse logic for nullable/not nullable toggle

This commit is contained in:
Pavan 2025-04-13 19:07:04 +05:30
parent 588f74648f
commit 6a2006062e

View File

@ -134,9 +134,10 @@ export default function TableField({ data, tid, index }) {
</Col> </Col>
<Col span={3}> <Col span={3}>
<Button <Button
type={data.notNull ? "primary" : "tertiary"}
title={t("not_null")} type={data.notNull ? "tertiary" : "primary"}
theme={data.notNull ? "solid" : "light"} title={t("Nullable")}
theme={data.notNull ? "light" : "solid"}
onClick={() => { onClick={() => {
setUndoStack((prev) => [ setUndoStack((prev) => [
...prev, ...prev,