Skip to content

Commit

Permalink
fix(Grid): fixes cellData = null breaking issue
Browse files Browse the repository at this point in the history
Closes #311
  • Loading branch information
aditya-kumawat committed Sep 1, 2020
1 parent 2b152ed commit 21f3ae1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/components/organisms/grid/rowUtility.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export function translateData(schema: ColumnSchema, data: RowData) {
...translatedData
} : translatedData;
}
if (typeof newData[schema.name] !== 'object') newData[schema.name] = { title: newData[schema.name] };
if (newData[schema.name] === null || typeof newData[schema.name] !== 'object') {
newData[schema.name] = { title: newData[schema.name] };
}

return newData;
}
Expand Down

0 comments on commit 21f3ae1

Please sign in to comment.