Fix blank state for between (#3883)

Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
aignatov-bio 2022-02-22 12:55:40 +01:00 committed by GitHub
parent d9dc27c2b8
commit 5a65b8689b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ export default {
}, },
computed: { computed: {
isBlank() { isBlank() {
return ((this.operator !== 'between' || !this.isPreset) && (!this.value || !this.value[this.timeType])) || return ((this.operator !== 'between' && !this.isPreset) && (!this.value || !this.value[this.timeType])) ||
(this.operator === 'between' && (!this.value || (!this.value[`start_${this.timeType}`] || !this.value[`end_${this.timeType}`]))) || (this.operator === 'between' && (!this.value || (!this.value[`start_${this.timeType}`] || !this.value[`end_${this.timeType}`]))) ||
(this.filter.column.id === 'archived_on' && $('.repository-show').hasClass('active')); (this.filter.column.id === 'archived_on' && $('.repository-show').hasClass('active'));
}, },