Skip to content

Commit 6717783

Browse files
committed
small refresh page fixes
1 parent 378e13f commit 6717783

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"core-js": "^3.8.3",
3131
"fs": "^0.0.1-security",
3232
"pinia": "^2.3.1",
33-
"query-sparql-remote-cache": "^0.0.8",
33+
"query-sparql-remote-cache": "^0.0.9",
3434
"sparqljs": "^3.7.3",
3535
"vite": "^6.2.3",
3636
"vue": "^3.2.13",

src/components/DataQuery.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,11 +1315,6 @@ export default {
13151315
},
13161316
deep: true,
13171317
},
1318-
selectedPodUrl(newValue, oldValue) {
1319-
if (newValue !== oldValue) {
1320-
window.location.reload();
1321-
}
1322-
},
13231318
},
13241319
beforeUnmount() {
13251320
if (this.worker) this.worker.terminate();
@@ -1332,7 +1327,6 @@ export default {
13321327
showQueryButton: false,
13331328
});
13341329
this.yasqe.setValue(this.currentQuery.query);
1335-
13361330
this.yasqe.on("change", (instance) => {
13371331
this.currentQuery.query = instance.getValue();
13381332
});

src/components/PodBrowser.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@
8181

8282
<!-- Item Info -->
8383
<div v-if="showInfoIndex === index" class="item-info-container">
84-
<div class="info-row">
84+
<div v-if="info === null" class="info-row">
85+
<strong class="info-label">No info to display</strong>
86+
</div>
87+
<div v-else class="info-row">
8588
<strong class="info-label">Source IRI:</strong>
8689
<div class="info-value-container">
8790
<span class="info-value iri" :title="info.sourceIri">{{
@@ -408,7 +411,7 @@ export default {
408411
watch: {
409412
selectedPodUrl(newValue, oldValue) {
410413
if (newValue !== oldValue) {
411-
window.location.reload();
414+
this.getItems(this.selectedPodUrl); // Fetch items for the initial path
412415
}
413416
},
414417
},

0 commit comments

Comments
 (0)