From 9813646c11b996158625e86151cd9336a2c144eb Mon Sep 17 00:00:00 2001 From: simon987 Date: Sat, 15 Apr 2023 12:39:47 -0400 Subject: [PATCH] Fix #343 --- .../src/components/FeaturedFieldsLine.vue | 40 ++++++++++--------- sist2-vue/src/views/SearchPage.vue | 15 +++++-- src/sist.h | 4 +- 3 files changed, 36 insertions(+), 23 deletions(-) diff --git a/sist2-vue/src/components/FeaturedFieldsLine.vue b/sist2-vue/src/components/FeaturedFieldsLine.vue index e2c1e88..c1690fa 100644 --- a/sist2-vue/src/components/FeaturedFieldsLine.vue +++ b/sist2-vue/src/components/FeaturedFieldsLine.vue @@ -1,42 +1,46 @@ \ No newline at end of file diff --git a/sist2-vue/src/views/SearchPage.vue b/sist2-vue/src/views/SearchPage.vue index 66e050e..fce9416 100644 --- a/sist2-vue/src/views/SearchPage.vue +++ b/sist2-vue/src/views/SearchPage.vue @@ -149,7 +149,7 @@ export default Vue.extend({ this.search(true); }); }).catch(error => { - console.log(error.response); + console.log(error); if (error.response.status == 503 || error.response.status == 500) { this.showEsConnectionError = true; @@ -267,11 +267,20 @@ export default Vue.extend({ }, size: 0 }).then(res => { - return { + const range = { min: res.aggregations.dateMin.value, max: res.aggregations.dateMax.value, } - }) + + if (range.min == null) { + range.min = 0; + range.max = 1; + } else if (range.min == range.max) { + range.max += 1; + } + + return range; + }); }, appendFunc() { if (!this.$store.state.uiReachedScrollEnd && this.search && !this.searchBusy) { diff --git a/src/sist.h b/src/sist.h index 31e04c5..6fb7e36 100644 --- a/src/sist.h +++ b/src/sist.h @@ -51,11 +51,11 @@ #include #include "git_hash.h" -#define VERSION "3.0.2" +#define VERSION "3.0.3" static const char *const Version = VERSION; static const int VersionMajor = 3; static const int VersionMinor = 0; -static const int VersionPatch = 1; +static const int VersionPatch = 3; #ifndef SIST_PLATFORM #define SIST_PLATFORM unknown