Skip to content

Commit 492fed1

Browse files
committed
[SER-1067] Can't create tokens via the Token Manager. Fixed issue with displaying created tokens.
1 parent c48f69b commit 492fed1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/express/public/core/token-manager/javascripts/countly.views.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@
151151
else {
152152
row.app = CV.i18n('token_manager.table.all-apps');
153153
}
154-
if (row.purpose !== "") {
154+
if (row.purpose && row.purpose !== "") {
155+
row.purpose = row.purpose + "";
155156
row.purpose = row.purpose[0].toUpperCase() + row.purpose.substring(1);
156157
}
157158
if (Array.isArray(row.endpoint)) {

0 commit comments

Comments
 (0)