Skip to content

Commit

Permalink
fix: delete bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Ellison committed Nov 5, 2023
1 parent 2c89cf4 commit 5823464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/resourcing/DemandTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function Resources({ role, resources }) {
const handleDelete = async (event) => {
console.debug('Resource:handleDelete: ', event)
try {
const response = await fetch(`/api/resourcing/placeholder?code=${event.Code}&id=${event.role_id}`, {
const response = await fetch(`/api/resourcing/placeholder?code=${event.Code}&role_id=${event.role_id}`, {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit 5823464

Please sign in to comment.