Skip to content

Commit

Permalink
sort type problems
Browse files Browse the repository at this point in the history
  • Loading branch information
marthasharkey committed Jul 21, 2024
1 parent 60cd4d5 commit 5ac8373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/gui2/src/components/visualizations/TableVisualization.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const agGridOptions: Ref<GridOptions & Required<Pick<GridOptions, 'defaultColDef
enableRangeSelection: true,
popupParent: document.body,
})
const textFormatterSelected = ref<TextFormatOptions>(TextFormatOptions.Special)
const textFormatterSelected = ref<TextFormatOptions>(TextFormatOptions.Partial)
const updateTextFormat = (option: TextFormatOptions) => {
textFormatterSelected.value = option
}
Expand Down Expand Up @@ -318,7 +318,7 @@ function escapeHTML(str: string) {
function getRowHeight(params: RowHeightParams) {
if (textFormatterSelected.value === TextFormatOptions.Off) return DEFAULT_ROW_HEIGHT
const rowData = Object.values(params.data)
const textValues = rowData.filter<string>((r) => typeof r === 'string')
const textValues = rowData.filter((r) => typeof r === 'string') as string[]
if (!textValues.length) return DEFAULT_ROW_HEIGHT
const containsReturnChars = textValues.filter(
(text: string) => text.match(/\r/g)?.length || text.match(/\n/g)?.length,
Expand Down

0 comments on commit 5ac8373

Please sign in to comment.