force lowercase on submit

* force lowercase on submit
This commit is contained in:
routerino 2024-10-05 08:37:17 +10:00 committed by GitHub
parent d340d7dd4c
commit 297ae51eaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,6 +13,8 @@
tagList.push(`tag:${newTag}`);
// remove duplicates
tagList = [...new Set(tagList)];
// force lowercase
tagList = tagList.map(str => str.toLowerCase());
updateTags(device.id, tagList)
.then((response) => {