2
0

fix(results): 🐛 Missing content

This commit is contained in:
Baptiste Arnaud
2022-06-25 18:10:02 +02:00
parent b9032b422c
commit bd2b906bd3

View File

@@ -173,9 +173,9 @@ export const convertResultsToTableData = (
}
}
const variable = answerOrVariable as VariableWithValue
if (isDefined(o[variable.id])) return o
const key = headerCells.find((h) => h.variableId === variable.id)?.label
if (!key) return o
if (isDefined(o[key])) return o
return {
...o,
[key]: { plainText: variable.value },