Skip to content

Commit d92e4ef

Browse files
committed
protect max distance in search from being null
1 parent ebcb8ca commit d92e4ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/views/app/Search.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ export default {
153153
},
154154
async search() {
155155
this.submitted = true;
156+
if (!this.filters.distance.max) {
157+
this.filters.distance.max = 500;
158+
}
156159
const searchRequest = await this.$http.post('/search', {
157160
min_age: this.filters.age.min,
158161
max_age: this.filters.age.max,

0 commit comments

Comments
 (0)