bug fix 1
This commit is contained in:
@@ -36,13 +36,11 @@ async function clearHistory() {
|
||||
}
|
||||
|
||||
async function deleteItem(id: string) {
|
||||
if(confirm('Delete this history record? (File will not be deleted)')) {
|
||||
try {
|
||||
await invoke('delete_history_item', { id })
|
||||
history.value = history.value.filter(h => h.id !== id)
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
try {
|
||||
await invoke('delete_history_item', { id })
|
||||
history.value = history.value.filter(h => h.id !== id)
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,4 +136,4 @@ onMounted(loadHistory)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user