Skip to content

Commit

Permalink
fix: Update tool archive URL to use correct tool ID
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DaveLuhman committed Jul 16, 2024
1 parent a6dc25b commit 0b78d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/editTool.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}'
}
})
}
Expand Down

0 comments on commit 0b78d4e

Please sign in to comment.