[#7649] renamed the stringify util and removed its unnecessery tags stripping

This commit is contained in:
Gani Georgiev
2026-04-20 11:46:35 +03:00
parent 1b18ab9bec
commit d35a0d841c
8 changed files with 30 additions and 45 deletions

View File

@@ -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)),

View File

@@ -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}`,
),
);