From cce25b1ba631d67fcf8e2833a32fcf8d7f1f6b01 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Mon, 10 Feb 2025 22:37:59 +0000 Subject: [PATCH] minor fixes --- src/views/ArchiveUrlView.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/ArchiveUrlView.vue b/src/views/ArchiveUrlView.vue index 95bc83e..4b3bafa 100644 --- a/src/views/ArchiveUrlView.vue +++ b/src/views/ArchiveUrlView.vue @@ -227,15 +227,15 @@ export default { .then(response => response.json()) .then(task => { if (task.status === "SUCCESS") { - this.showSnackbar(`URL archived successfully with id ${task.result.id}!`, "green"); + this.showSnackbar(`URL archived successfully with id ${task.id}!`, "green"); this.loadingArchive = false; this.archiveResult = task; this.taskId = task.id; } else if (task.status === "FAILURE") { - this.showSnackbar(`Failed to archive URL: ${task.result.error}`); + this.showSnackbar(`Failed to archive URL: ${task.error}`); this.loadingArchive = false; this.taskId = null; - this.archiveFailure = task.result.error; + this.archiveFailure = task.error; } else { setTimeout(poll, 5000); // Poll every 5 seconds }