Skip to content

Commit 10e590a

Browse files
committed
Missing condition
1 parent 14e44d2 commit 10e590a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/scoped-access-token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function initScopedAccessTokenCategories() {
1111
noAccessLabel: el.getAttribute('data-no-access-label'),
1212
readLabel: el.getAttribute('data-read-label'),
1313
writeLabel: el.getAttribute('data-write-label'),
14-
scopes: JSON.parse(el.getAttribute('data-scopes')),
14+
scopes: JSON.parse(el.getAttribute('data-scopes').length > 0 ? el.getAttribute('data-scopes') : '[]'),
1515
});
1616
View.mount(el);
1717
} catch (err) {

0 commit comments

Comments
 (0)