diff --git a/frontend/src/components/main/stations/StationList.vue b/frontend/src/components/main/stations/StationList.vue index 3a2100d4..ab59ef05 100644 --- a/frontend/src/components/main/stations/StationList.vue +++ b/frontend/src/components/main/stations/StationList.vue @@ -88,7 +88,7 @@ export default { this.loading = true return this.$store.dispatch('fetchStations', { page: this.page, - beginsWith: value.newValue + beginsWith: value.newValue.trim() }) }) ) @@ -114,7 +114,7 @@ export default { this.loading = true let stationsPaginated = await this.$store.dispatch('fetchStations', { page: this.page, - beginsWith: this.stationName + beginsWith: this.stationName.trim() }) this.setStations(stationsPaginated.docs) this.totalStations = stationsPaginated.total diff --git a/frontend/src/mixins/factionMethods.js b/frontend/src/mixins/factionMethods.js index 4a34964d..4b48ed35 100644 --- a/frontend/src/mixins/factionMethods.js +++ b/frontend/src/mixins/factionMethods.js @@ -3,7 +3,7 @@ export default { fetchFactionsCall(page, factionName) { return this.$store.dispatch('fetchFactions', { page: page, - beginsWith: factionName + beginsWith: factionName.trim() }) } } diff --git a/frontend/src/mixins/systemMethods.js b/frontend/src/mixins/systemMethods.js index fe2425a0..e130fe78 100644 --- a/frontend/src/mixins/systemMethods.js +++ b/frontend/src/mixins/systemMethods.js @@ -3,7 +3,7 @@ export default { fetchSystemsCall(page, systemName) { return this.$store.dispatch('fetchSystems', { page: page, - beginsWith: systemName + beginsWith: systemName.trim() }) } }