Skip to content

Commit

Permalink
remove unnecessary prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Jul 29, 2023
1 parent 914e001 commit 2db93df
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions report-viewer/src/components/FilesContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ScrollableComponent class="flex-grow">
<VueDraggableNext>
<CodePanel
v-for="(file, index) in filesRef"
v-for="(file, index) in files"
:key="index"
ref="codePanels"
:file="file"
Expand All @@ -29,7 +29,7 @@ import CodePanel from '@/components/CodePanel.vue'
import Container from './ContainerComponent.vue'
import ScrollableComponent from './ScrollableComponent.vue'
import { VueDraggableNext } from 'vue-draggable-next'
import { computed, ref, type Ref } from 'vue'
import { ref, type Ref } from 'vue'
import type { MatchInSingleFile } from '@/model/MatchInSingleFile'
import store from '@/stores/store'
Expand Down Expand Up @@ -73,17 +73,6 @@ const props = defineProps({
defineEmits(['lineSelected'])
const filesRef = computed(() => {
return props.files.map((file) => {
return {
...file,
owner: props.anonymous
? props.anonymousFilesOwnerDefault
: store().submissionDisplayName(props.submissionId)
}
})
})
const codePanels: Ref<(typeof CodePanel)[]> = ref([])
function scrollTo(file: string, line: number) {
Expand Down

0 comments on commit 2db93df

Please sign in to comment.