Skip to content

Commit

Permalink
fix sonarQube notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Quelca committed Aug 21, 2024
1 parent d6ea214 commit 03fdaf4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -676,11 +676,8 @@ export default {
// Handle the first task from the response
const firstTask = response.data.data[0];
if (firstTask && firstTask.user_id === userId) {
// this.$emit("completed", requestId, `/tasks/${firstTask.id}/edit`);
// window.location.href = `/tasks/${firstTask.id}/edit`;
this.redirectToTask(firstTask.id);
} else {
// this.$emit("completed", requestId);
this.redirectToRequest(requestId);
}
} catch (error) {
Expand Down

0 comments on commit 03fdaf4

Please sign in to comment.