Skip to content
Snippets Groups Projects
Commit b0946a4b authored by Tim Neumann's avatar Tim Neumann
Browse files

feat(addItemByTag): Always use lowercase tag

Resolves: #1
parent 1ee77e34
No related branches found
No related tags found
1 merge request!18Merge Staging into Main
This diff is collapsed.
...@@ -158,6 +158,8 @@ export async function addItemByTag(tag) { ...@@ -158,6 +158,8 @@ export async function addItemByTag(tag) {
throw "Internal Error: Tag not length 6."; throw "Internal Error: Tag not length 6.";
} }
tag = tag.toLowerCase();
console.log("Trying to add item by tag:", tag); console.log("Trying to add item by tag:", tag);
var response = await fetch(config.backend_url + "/tag/" + tag, { var response = await fetch(config.backend_url + "/tag/" + tag, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment