Skip to content
Snippets Groups Projects
Commit 6e1b2983 authored by MahiFaiyaz's avatar MahiFaiyaz
Browse files

Updated keylength

parent 325d2c1a
No related branches found
No related tags found
1 merge request!4Subreddit feature
......@@ -17,9 +17,9 @@ const formatData = (data, dataKey, dataValue) => {
obj[dataValue] = value
if (dataKey === "author") {
obj['label'] = key
if (key.length > 10) {
if (key.length > 8) {
console.log(key.length)
obj['label'] = key.slice(0,8) + ".."
obj['label'] = key.slice(0,6) + ".."
}
}
result.push(obj)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment