Skip to content

Commit

Permalink
chore: extra space minimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMaster17 committed Sep 3, 2024
1 parent e29b5b8 commit bb81875
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/components/core/problem/VerticalResizable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ const VerticalResizable: React.FC<any> = ({ problem }) => {
problem_id: problem.id,
};
console.log("payload", payload);

const { data } = await axios.post(`${BACKEND_ROUTE_CODE}/code/run`, payload);
console.log(data);
setJobIdData(data)


const intervalId = setInterval(async () => {
const response = await fetch(`${BACKEND_ROUTE_CODE}/code/status?id=${data.jobId}`);
console.log('Response status:', response.status);
Expand Down

0 comments on commit bb81875

Please sign in to comment.