revert changes to label view

This commit is contained in:
Godfrey M 2024-09-04 12:38:35 -07:00
parent 20fa4c39f9
commit 7c8955b126

View file

@ -158,8 +158,8 @@ class Label implements View
// The end result of this will be in this format:
// {labelOne} {valueOne} | {labelTwo} {valueTwo} | {labelThree} {valueThree}
$previous['value'] = trim(implode(' | ', [
implode(' ', [$previous['label'], str_replace(['{', '}'], '', $previous['value'])]),
implode(' ', [$current['label'], str_replace(['{', '}'], '', $current['value'])]),
implode(' ', [$previous['label'], $previous['value']]),
implode(' ', [$current['label'], $current['value']]),
]));
// We'll set the label to an empty string since we