We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14e44d2 commit 10e590aCopy full SHA for 10e590a
web_src/js/features/scoped-access-token.ts
@@ -11,7 +11,7 @@ export async function initScopedAccessTokenCategories() {
11
noAccessLabel: el.getAttribute('data-no-access-label'),
12
readLabel: el.getAttribute('data-read-label'),
13
writeLabel: el.getAttribute('data-write-label'),
14
- scopes: JSON.parse(el.getAttribute('data-scopes')),
+ scopes: JSON.parse(el.getAttribute('data-scopes').length > 0 ? el.getAttribute('data-scopes') : '[]'),
15
});
16
View.mount(el);
17
} catch (err) {
0 commit comments