Skip to content

Commit 2f8be06

Browse files
authored
Fix: hardcoded API endpoint & this. access in template (#122)
1 parent fc44f0a commit 2f8be06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/ObjectList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<v-tooltip activator="parent" location="top" :open-delay="200">{{ item.name }}</v-tooltip>
1919
<router-link
2020
:to="{
21-
name: this.searchType === 'entities' ? 'EntityDetails' : 'IndicatorDetails',
21+
name: searchType === 'entities' ? 'EntityDetails' : 'IndicatorDetails',
2222
params: { id: item.id }
2323
}"
2424
>{{ item.name }}</router-link

src/views/ObservableSearch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default {
152152
count: itemsPerPage,
153153
query: this.extractParamsFromSearchQuery(this.searchQuery, "value")
154154
};
155-
axios.post("http://localhost:3000/api/v2/observables/search", params).then(response => {
155+
axios.post("/api/v2/observables/search", params).then(response => {
156156
this.items = response.data.observables;
157157
this.total = response.data.total;
158158
});

0 commit comments

Comments
 (0)