Skip to content

Commit bb91f25

Browse files
authored
Refactor API version handling in compare_datasets for newer version
1 parent c733664 commit bb91f25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/compare_datasets/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
F2.1<script>
22
import { diffChars } from 'diff';
33
import { onMount } from 'svelte';
44
import {
@@ -142,7 +142,7 @@
142142
if ($api_version == '2.17' ) {
143143
url_metadata_api = endpoint_metadata + '/' + dataset_id + '/' + version_id;
144144
}
145-
if ($api_version == '2.18' ) {
145+
else {
146146
url_metadata_api = endpoint_metadata + '/' + dataset_id + '/version_number/' + version_id;
147147
}
148148

0 commit comments

Comments
 (0)