Skip to content

Commit

Permalink
fix: fix the cancel and delete bug
Browse files Browse the repository at this point in the history
  • Loading branch information
babuzeer committed Mar 18, 2024
1 parent cba5230 commit 1eec0ad
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/components/TodolistButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,28 @@
}
async function jumptodo(title) {
if(showtodo == true){
if (showtodo == true) {
const response_ = await pb.collection("notices").getFullList({
sort: "-created",
filter: `tittle="${title}"`,
});
sort: "-created",
filter: `tittle="${title}"`,
});
currentnoticeid.set(response_[0].id);
const uEmail = $currentUserEmail;
const response = await pb.collection("todolist").getFullList({
sort: "-created",
filter: `useremail="${uEmail}"`,
});
currentnoticeid.set(response_[0].id);
const uEmail = $currentUserEmail;
const response = await pb.collection("todolist").getFullList({
sort: "-created",
filter: `useremail="${uEmail}"`,
});
for (const item of response) {
if (item.tittle == title) {
isJoinedTodo.set("find");
break;
} else {
isJoinedTodo.set("noFind");
for (const item of response) {
if (item.tittle == title) {
isJoinedTodo.set("find");
break;
} else {
isJoinedTodo.set("noFind");
}
}
}
push("/checknotice");
push("/checknotice");
}
showtodo = true;
}
Expand Down

0 comments on commit 1eec0ad

Please sign in to comment.