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,9 +86,9 @@ function deleteTagsFromStorage(ID, deletedTags) {
for(let j in tagArr){
if(tagArr[j] == ID){
tagArr.splice(j,1);
}
break;
}
}
if(tagArr.length != 0){
localStorage.setItem(tagName, JSON.stringify(tagArr));
} else {