Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkrzem committed Oct 9, 2024
1 parent 8556a75 commit 71f42ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mqueryfront/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const statusClassMap = {
done: "success",
new: "info",
processing: "info",
cancelled: "danger"
cancelled: "danger",
};

export const isAuthEnabled = (config) =>
Expand All @@ -14,7 +14,8 @@ export const isAuthEnabled = (config) =>
export const openidLoginUrl = (config) => {
if (config["openid_url"] === null || config["openid_client_id"] === null) {
// Defensive programming - config keys can be null.
return "#";gi
return "#";
gi;
}
const login_url = new URL(config["openid_url"] + "/auth");
login_url.searchParams.append("client_id", config["openid_client_id"]);
Expand Down

0 comments on commit 71f42ef

Please sign in to comment.