Skip to content

Commit

Permalink
Fix datatable renderer for boolean fields
Browse files Browse the repository at this point in the history
For some fields where the data type is dynamic, like field history, the data table would not display the value for boolean values.

Text fields now use the GenericRenderer to account for a few different data types

resolves #820
  • Loading branch information
paustint committed Apr 5, 2024
1 parent fc1fc99 commit 8427919
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/ui/src/lib/data-table/data-table-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ export function updateColumnFromType(column: Mutable<ColumnWithFilter<any>>, fie
column.filters = ['TEXT', 'SET'];
switch (fieldType) {
case 'text':
column.renderCell = GenericRenderer;
break;
case 'number':
// TODO:
Expand Down

0 comments on commit 8427919

Please sign in to comment.