Skip to content

Commit 81000dc

Browse files
committed
CenterFrame already calls withPrefix
1 parent 60dd9ce commit 81000dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/components/Dataset/DatasetDisplay.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const dataset = computed(() => getDataset(props.datasetId));
3737
const datasetUrl = computed(() => `/datasets/${props.datasetId}/display`);
3838
const downloadUrl = computed(() => withPrefix(`${datasetUrl.value}?to_ext=${dataset.value?.file_ext}`));
3939
const isLoading = computed(() => isLoadingDataset(props.datasetId));
40-
const previewUrl = computed(() => withPrefix(`${datasetUrl.value}?preview=True`));
40+
const previewUrl = computed(() => `${datasetUrl.value}?preview=True`);
4141
4242
const sanitizedMessage = computed(() => {
4343
const plainText = "Contents are shown as plain text.";
@@ -53,7 +53,7 @@ watch(
5353
() => props.datasetId,
5454
async () => {
5555
try {
56-
const { headers } = await fetch(previewUrl.value, { method: "HEAD" });
56+
const { headers } = await fetch(withPrefix(previewUrl.value), { method: "HEAD" });
5757
contentChunked.value = !!headers.get("x-content-chunked");
5858
contentTruncated.value = headers.get("x-content-truncated")
5959
? Number(headers.get("x-content-truncated"))

0 commit comments

Comments
 (0)