round 5
This commit is contained in:
@@ -46,7 +46,7 @@ const $router = useRouter()
|
||||
const showConfirm = ref(false)
|
||||
const taskToDelete = ref<string | null>(null)
|
||||
const taskListRef = ref()
|
||||
const taskCountRef = ref<number>(0)
|
||||
const taskCountRef = ref<number>(-1)
|
||||
|
||||
function confirmDeleteTask(taskId: string) {
|
||||
taskToDelete.value = taskId
|
||||
@@ -62,7 +62,6 @@ const deleteTask = async () => {
|
||||
if (!resp.ok) throw new Error(`HTTP ${resp.status}`)
|
||||
// Refresh the task list after successful delete
|
||||
taskListRef.value?.refresh()
|
||||
console.log(`Task ${taskToDelete.value} deleted successfully`)
|
||||
} catch (err) {
|
||||
console.error('Failed to delete task:', err)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user