Skip to content

Commit

Permalink
fix CardCourse and detail page bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hayato24s committed Oct 1, 2022
1 parent aac4b09 commit 194f9b2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ui/components/CardCourse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default defineComponent({
@clickCheckbox.stop="emitCheckboxEvent"
></Checkbox>
</div>
<div class="card-course__courseId">{{ course.id }}</div>
<div class="card-course__courseId">{{ course.code }}</div>
<div class="card-course__courseName">{{ course.name }}</div>
<div
:class="{
Expand Down
3 changes: 1 addition & 2 deletions src/ui/pages/course/_id/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<template #right-button-icon>
<div v-click-away="closePopup">
<ToggleIconButton
ref="btnRef"
class="header__right-button-icon"
size="large"
color="normal"
Expand Down Expand Up @@ -181,7 +180,7 @@
</template>

<script setup lang="ts">
import { ComputedRef, ref, watch, watchEffect } from "vue";
import { ComputedRef, ref } from "vue";
import { useRoute, useRouter } from "vue-router";
import { NotFoundError } from "~/domain/error";
import { registeredCourseToDisplay } from "~/presentation/presenters/course";
Expand Down
1 change: 0 additions & 1 deletion src/ui/store/course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export const setCourseById = async (id: string) => {
export const addCoursesByCodes = async (
inputData: { year: number; code: string }[]
) => {
console.log("addCoursesByCodes", courses.length);
const result = await UseCase.addCoursesByCodes(ports)(inputData);
if (isResultError(result)) throw result;
addElementsInArray(courses, result);
Expand Down

0 comments on commit 194f9b2

Please sign in to comment.