bc-primeng-ui 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3945,7 +3945,12 @@ class BCGenericPTableComponent {
|
|
|
3945
3945
|
}
|
|
3946
3946
|
getFormattedValue(item, column) {
|
|
3947
3947
|
try {
|
|
3948
|
-
|
|
3948
|
+
const field = column.field;
|
|
3949
|
+
const value = field.split('.').reduce((current, key) => current?.[key], item);
|
|
3950
|
+
if (value == null) {
|
|
3951
|
+
return '';
|
|
3952
|
+
}
|
|
3953
|
+
return String(value);
|
|
3949
3954
|
}
|
|
3950
3955
|
catch (error) {
|
|
3951
3956
|
console.error('Erro retornado pelo serviço de formatação:', error);
|