File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client/src/components/Dataset Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const dataset = computed(() => getDataset(props.datasetId));
3737const datasetUrl = computed (() => ` /datasets/${props .datasetId }/display ` );
3838const downloadUrl = computed (() => withPrefix (` ${datasetUrl .value }?to_ext=${dataset .value ?.file_ext } ` ));
3939const isLoading = computed (() => isLoadingDataset (props .datasetId ));
40- const previewUrl = computed (() => withPrefix ( ` ${datasetUrl .value }?preview=True ` ) );
40+ const previewUrl = computed (() => ` ${datasetUrl .value }?preview=True ` );
4141
4242const sanitizedMessage = computed (() => {
4343 const plainText = " Contents are shown as plain text." ;
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" ))
You can’t perform that action at this time.
0 commit comments