diff --git a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue index 237d3e0546..7cef07f7a1 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -688,6 +688,12 @@ const timeGranularityMultipleChange = (val: string) => { ) { curComponent.value.relativeToCurrentType = 'year' } + if ( + ['yearrange', 'monthrange', 'datetimerange'].indexOf(val) < + ['year', 'month', 'date'].indexOf(curComponent.value.relativeToCurrentTypeRange) + ) { + curComponent.value.relativeToCurrentTypeRange = 'year' + } } const aroundList = [ {