bug fixed: Unable to set a toggle switch column to false when initiated to true (#5470)

This commit is contained in:
Manish Kushare 2023-02-16 11:08:43 +05:30 committed by GitHub
parent e6742105c7
commit 5d7a5cd565
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,9 +69,8 @@ export default function generateColumnsData({
key: column.key,
Cell: function (cell) {
const rowChangeSet = changeSet ? changeSet[cell.row.index] : null;
let cellValue = rowChangeSet ? rowChangeSet[column.name] || cell.value : cell.value;
let cellValue = rowChangeSet ? rowChangeSet[column.name] ?? cell.value : cell.value;
const rowData = tableData[cell.row.index];
if (
cell.row.index === 0 &&
variablesExposedForPreview &&