mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
[ Bug fixed ] - [ Table widget ] showing blank spaces for undefined and null values in the respective cells (#5368)
* bug fixed - shwowing blank spaces for undefined and null values in the respective cells * removed the condition for string undefined and null edge case
This commit is contained in:
parent
9274c070f8
commit
f3965da73c
1 changed files with 3 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ export default function generateColumnsData({
|
|||
isEditable: column.isEditable,
|
||||
Cell: function (cell) {
|
||||
const rowChangeSet = changeSet ? changeSet[cell.row.index] : null;
|
||||
const 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 (
|
||||
|
|
@ -80,6 +80,8 @@ export default function generateColumnsData({
|
|||
customResolvables[id] = { ...variablesExposedForPreview[id], rowData };
|
||||
exposeToCodeHinter((prevState) => ({ ...prevState, ...customResolvables }));
|
||||
}
|
||||
cellValue = cellValue === undefined || cellValue === null ? '' : cellValue;
|
||||
|
||||
switch (columnType) {
|
||||
case 'string':
|
||||
case undefined:
|
||||
|
|
@ -158,7 +160,6 @@ export default function generateColumnsData({
|
|||
const cellStyles = {
|
||||
color: textColor ?? '',
|
||||
};
|
||||
|
||||
if (column.isEditable) {
|
||||
const validationData = validateWidget({
|
||||
validationObject: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue