Skip to content

Commit d1d4ae3

Browse files
committed
Explicitly declare emit in data display component
1 parent e16d750 commit d1d4ae3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/components/Dataset/DatasetDisplay.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ interface Props {
2121
2222
const { getDataset, isLoadingDataset } = useDatasetStore();
2323
24+
const emit = defineEmits(["load"]);
25+
2426
const props = defineProps<Props>();
2527
2628
const contentTruncated = ref<number | null>(null);
@@ -95,7 +97,7 @@ watch(
9597
</div>
9698
<a :href="downloadUrl">Download</a>
9799
</div>
98-
<CenterFrame :src="previewUrl" @load="$emit('load')" />
100+
<CenterFrame :src="previewUrl" @load="emit('load')" />
99101
</div>
100102
</div>
101103
</template>

0 commit comments

Comments
 (0)