Skip to content

Commit

Permalink
fix: prevent getFormattedCellValue from failing when no header.name i…
Browse files Browse the repository at this point in the history
…s provided
  • Loading branch information
martinkrulltott committed Dec 27, 2023
1 parent 77631d7 commit 36d9998
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/tableValues.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { headersMap, getStatusNames } from './visualization.js'

const getFormattedCellValue = ({ value, header = {}, visualization = {} }) => {
if (
header.name &&
[
headersMap[DIMENSION_ID_EVENT_STATUS],
headersMap[DIMENSION_ID_PROGRAM_STATUS],
Expand Down

0 comments on commit 36d9998

Please sign in to comment.