refactor(board): accept refresh params in useBoardPosts mutators
This commit is contained in:
parent
61d33f5db3
commit
698f786951
2 changed files with 7 additions and 8 deletions
|
|
@ -441,8 +441,7 @@ const postExcerpt = (post) => {
|
|||
const handleDeletePost = async (post) => {
|
||||
if (!window.confirm(`Delete "${post.title}"?`)) return;
|
||||
try {
|
||||
await deletePost(post._id);
|
||||
await fetchPosts({ author: memberId.value });
|
||||
await deletePost(post._id, { author: memberId.value });
|
||||
} catch (error) {
|
||||
console.error("Delete post error:", error);
|
||||
toast.add({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue