From 786bbc3859b3602afe3fa51960b6ce8f2b3a2a31 Mon Sep 17 00:00:00 2001 From: simon987 Date: Wed, 27 Sep 2023 19:49:43 -0400 Subject: [PATCH] Make sure dateMin and dateMax are not equal with sqlite frontend --- sist2-vue/src/Sist2Api.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sist2-vue/src/Sist2Api.js b/sist2-vue/src/Sist2Api.js index c820be3..dcc5b4a 100644 --- a/sist2-vue/src/Sist2Api.js +++ b/sist2-vue/src/Sist2Api.js @@ -421,7 +421,9 @@ class Sist2Api { return axios.get(`${this.baseUrl}fts/dateRange`) .then(resp => ({ min: resp.data.dateMin, - max: resp.data.dateMax, + max: (resp.data.dateMax === resp.data.dateMin) + ? resp.data.dateMax + 1 + : resp.data.dateMax, })); } @@ -585,7 +587,7 @@ class Sist2Api { } } - getTagSuggestions(prefix) { + getTagSuggestions(prefix) { if (this.backend() === "sqlite") { return this.getTagSuggestionsSqlite(prefix); } else {