mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 02:09:17 +00:00
Fix button behavior: Reverse logic for nullable/not nullable toggle
This commit is contained in:
parent
588f74648f
commit
6a2006062e
@ -134,9 +134,10 @@ export default function TableField({ data, tid, index }) {
|
||||
</Col>
|
||||
<Col span={3}>
|
||||
<Button
|
||||
type={data.notNull ? "primary" : "tertiary"}
|
||||
title={t("not_null")}
|
||||
theme={data.notNull ? "solid" : "light"}
|
||||
|
||||
type={data.notNull ? "tertiary" : "primary"}
|
||||
title={t("Nullable")}
|
||||
theme={data.notNull ? "light" : "solid"}
|
||||
onClick={() => {
|
||||
setUndoStack((prev) => [
|
||||
...prev,
|
||||
|
Loading…
Reference in New Issue
Block a user