From 5d7a5cd565541769d095b9ab9566453afdb1c8e5 Mon Sep 17 00:00:00 2001 From: Manish Kushare Date: Thu, 16 Feb 2023 11:08:43 +0530 Subject: [PATCH] bug fixed: Unable to set a toggle switch column to false when initiated to true (#5470) --- frontend/src/Editor/Components/Table/columns/index.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/Editor/Components/Table/columns/index.jsx b/frontend/src/Editor/Components/Table/columns/index.jsx index 85f4fcd067..4abcfef68b 100644 --- a/frontend/src/Editor/Components/Table/columns/index.jsx +++ b/frontend/src/Editor/Components/Table/columns/index.jsx @@ -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 &&