mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-12-27 09:29:10 +00:00
moved break for delete
This commit is contained in:
parent
1cdaa63935
commit
6a0708a3f0
@ -86,8 +86,8 @@ 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));
|
||||||
|
Loading…
Reference in New Issue
Block a user