[#7649] renamed the stringify util and removed its unnecessery tags stripping
This commit is contained in:
@@ -239,7 +239,7 @@ function logPreviewModal(logIdOrModel, settings) {
|
||||
|
||||
return t.span({
|
||||
className: "txt",
|
||||
textContent: app.utils.stringifyValue(value, "N/A", 1000),
|
||||
textContent: app.utils.displayValue(value, 1000),
|
||||
});
|
||||
}),
|
||||
t.td({ className: "col-copy min-width" }, app.components.copyButton(value)),
|
||||
|
||||
@@ -374,18 +374,12 @@ export function logsList(logsSettings) {
|
||||
if (app.utils.logDataFormatters[keyItem.key]) {
|
||||
value = app.utils.logDataFormatters[keyItem.key](log);
|
||||
} else {
|
||||
value = app.utils.stringifyValue(
|
||||
log.data[keyItem.key],
|
||||
"N/A",
|
||||
80,
|
||||
);
|
||||
value = app.utils.displayValue(log.data[keyItem.key], 80);
|
||||
}
|
||||
|
||||
labels.push(
|
||||
t.span(
|
||||
{
|
||||
className: `label sm ${keyItem.label || ""}`,
|
||||
},
|
||||
{ className: `label sm ${keyItem.label || ""}` },
|
||||
`${keyItem.key}: ${value}`,
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user