1
0

fix(filters): correctly transform and populate saved filter when creating and editing

This fixes a bug where the checkbox "include nulls" during creation was not checked but would be saved as such.

(cherry picked from commit 4dd9d5de6777967203533b8f88756c3cab4d2bd5)
This commit is contained in:
kolaente
2024-09-19 12:21:19 +02:00
parent 320fc75c27
commit 51f26d14b9
3 changed files with 13 additions and 29 deletions

View File

@ -1,11 +1,12 @@
import type {IAbstract} from './IAbstract'
import type {IUser} from './IUser'
// FIXME: what makes this different from TaskFilterParams?
interface Filters {
sortBy: ('start_date' | 'done' | 'id' | 'position')[],
orderBy: ('asc' | 'desc')[],
sort_by: ('start_date' | 'done' | 'id' | 'position')[],
order_by: ('asc' | 'desc')[],
filter: string,
filterIncludeNulls: boolean,
filter_include_nulls: boolean,
s: string,
}