Skip to content

Commit

Permalink
Fix: hardcoded API endpoint & this. access in template (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop authored Jan 4, 2024
1 parent fc44f0a commit 2f8be06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ObjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<v-tooltip activator="parent" location="top" :open-delay="200">{{ item.name }}</v-tooltip>
<router-link
:to="{
name: this.searchType === 'entities' ? 'EntityDetails' : 'IndicatorDetails',
name: searchType === 'entities' ? 'EntityDetails' : 'IndicatorDetails',
params: { id: item.id }
}"
>{{ item.name }}</router-link
Expand Down
2 changes: 1 addition & 1 deletion src/views/ObservableSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default {
count: itemsPerPage,
query: this.extractParamsFromSearchQuery(this.searchQuery, "value")
};
axios.post("http://localhost:3000/api/v2/observables/search", params).then(response => {
axios.post("/api/v2/observables/search", params).then(response => {
this.items = response.data.observables;
this.total = response.data.total;
});
Expand Down

0 comments on commit 2f8be06

Please sign in to comment.