mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-11-10 05:34:44 +00:00
moved break for delete
This commit is contained in:
parent
1cdaa63935
commit
6a0708a3f0
@ -86,9 +86,9 @@ function deleteTagsFromStorage(ID, deletedTags) {
|
|||||||
for(let j in tagArr){
|
for(let j in tagArr){
|
||||||
if(tagArr[j] == ID){
|
if(tagArr[j] == ID){
|
||||||
tagArr.splice(j,1);
|
tagArr.splice(j,1);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tagArr.length != 0){
|
if(tagArr.length != 0){
|
||||||
localStorage.setItem(tagName, JSON.stringify(tagArr));
|
localStorage.setItem(tagName, JSON.stringify(tagArr));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user