Skip to content

Commit

Permalink
Fix sending of cc variables in SLO approve event button
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavberi committed Mar 23, 2024
1 parent 46b097d commit 974ebdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 6 additions & 2 deletions src/app/actions/events/progress/route.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ import { PROGRESS_EVENT } from "gql/mutations/events";

export async function POST(request) {
const response = { ok: false, error: null };
const { eventid, cc_progress_budget, cc_progress_room, cc_approver } =
await request.json();
const {
eventid,
cc_progress_budget = false,
cc_progress_room = false,
cc_approver=null,
} = await request.json();

const { error } = await getClient().mutation(PROGRESS_EVENT, {
eventid,
Expand Down
3 changes: 0 additions & 3 deletions src/components/events/EventActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ export function ApproveEvent({ sx }) {
method: "POST",
body: JSON.stringify({
eventid: id,
cc_progress_budget: !SLC,
cc_progress_room: !SLO,
cc_approver: null,
}),
});
res = await res.json();
Expand Down

0 comments on commit 974ebdc

Please sign in to comment.