From 0b78d4e7f3496e5b73c90bf0c006e43d3e75b952 Mon Sep 17 00:00:00 2001 From: Dave Luhman Date: Tue, 16 Jul 2024 18:31:31 -0500 Subject: [PATCH] fix: Update tool archive URL to use correct tool ID This commit updates the URL used for archiving a tool in the editTool.hbs template. It replaces the placeholder "{{id}}" with the actual tool ID "{{tools.0.id}}". This change ensures that the correct tool is archived when the user confirms the action. fixes: Unable to archive tools #233 --- src/views/editTool.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/editTool.hbs b/src/views/editTool.hbs index 9fc075c..8c7cd4b 100644 --- a/src/views/editTool.hbs +++ b/src/views/editTool.hbs @@ -154,7 +154,7 @@ { e.preventDefault() if(window.confirm('Would you like to archive this tool?')) { - window.location.href = '/tool/archive/{{id}}' + window.location.href = '/tool/archive/{{tools.0.id}}' } }) }