moved break for delete

This commit is contained in:
Kara Hoagland 2022-11-29 14:27:48 -08:00
parent 1cdaa63935
commit 6a0708a3f0

View File

@ -86,8 +86,8 @@ function deleteTagsFromStorage(ID, deletedTags) {
for(let j in tagArr){
if(tagArr[j] == ID){
tagArr.splice(j,1);
break;
}
break;
}
if(tagArr.length != 0){
localStorage.setItem(tagName, JSON.stringify(tagArr));