Skip to content

Commit

Permalink
fix disable clear data type
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rocheleau committed Aug 22, 2023
1 parent 03b8908 commit 739a6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/datasets/DatasetDataTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const DatasetDataTypes = React.memo(
<Button
type="danger"
icon="delete"
disabled={dt.count !== null && dt.count > 0}
disabled={ !dt.count || dt.count && dt.count === 0}
onClick={() => handleClearDataType(dt)}
style={{ width: "100%" }}
>
Expand Down

0 comments on commit 739a6f6

Please sign in to comment.