2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

Only limit length of link if specified (#3700)

This commit is contained in:
Oliver
2022-09-21 14:01:30 +10:00
committed by GitHub
parent 2129eecf24
commit 2a846c7030

View File

@ -258,7 +258,7 @@ function renderLink(text, url, options={}) {
return text; return text;
} }
var max_length = options.max_length || 100; var max_length = options.max_length || 0;
if (max_length > 0) { if (max_length > 0) {
text = shortenString(text, { text = shortenString(text, {