Skip to content

Commit

Permalink
update: compare value parse
Browse files Browse the repository at this point in the history
  • Loading branch information
waynelwz committed Apr 12, 2023
1 parent 3ada1c4 commit 9f5235a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/src/pages/Evaluation/EvaluationListCompare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const isValidValue = (str: string) => str !== '-'
function val(r: any) {
if (r === undefined) return ''
if (typeof r === 'object' && 'value' in r) {
return JSON.stringify(r.value, null)
return typeof r.value === 'object' ? JSON.stringify(r.value, null) : r.value
}

return r
Expand Down

0 comments on commit 9f5235a

Please sign in to comment.