Skip to content
Snippets Groups Projects
Commit 652c1e7a authored by Nicolas PAGNY's avatar Nicolas PAGNY
Browse files

Fix create client bug

parent 1689c695
Branches create_basique_admin_interface
No related tags found
No related merge requests found
...@@ -232,12 +232,12 @@ class Clients { ...@@ -232,12 +232,12 @@ class Clients {
var methodToUse = "" var methodToUse = ""
if (this.clientID == "") { if (this.clientID == null) {
methodToUse = "PUT" methodToUse = "PUT"
}else{ }else{
methodToUse = "POST" methodToUse = "POST"
} }
try { try {
const response = await fetch("/api/admin/clients", { const response = await fetch("/api/admin/clients", {
method: methodToUse, method: methodToUse,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment