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 28a0f19 commit ed921b7Copy full SHA for ed921b7
app/views/email-api.pug
@@ -7,7 +7,7 @@ block body
7
// Initialize the Scalar API Reference
8
script.
9
window.WEB_URL = "#{ config.WEB_URL }";
10
- window.API_TOKEN = "#{user[config.userFields.apiToken]}";
+ window.API_TOKEN = "#{user ? user[config.userFields.apiToken] : ""}";
11
Scalar.createApiReference("#app", {
12
// The URL of the OpenAPI/Swagger document
13
url: `${window.WEB_URL}/api-spec.json`,
0 commit comments