Skip to content
Snippets Groups Projects
Commit ff1c2152 authored by Leah Tacke genannt Unterberg's avatar Leah Tacke genannt Unterberg
Browse files

fixed improvement of TablePreview.vue handling of weird input

parent 2ca59050
Branches
No related tags found
No related merge requests found
Pipeline #572276 passed
......@@ -27,7 +27,8 @@ function sanitizeItemValue(v) {
if (v === null || v === undefined) s = 'NA'
else if (Array.isArray(v)) s = v.join(', ')
else if (typeof v === 'object') s = JSON.stringify(v)
if (typeof s === 'string') return (s.length > 20 ? s.substring(0, 20) + '...' : s)
if (typeof s === 'string') return (s.length > 50 ? s.substring(0, 50) + '...' : s)
else return s
}
function loadItems({page, itemsPerPage}) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment