Fix migration (#3904)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-10-29 23:21:26 +06:00 committed by GitHub
parent 28ee0e8f62
commit 27db056f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ async function removeDoneStateFilter (client: MigrationClient): Promise<void> {
for (const filter of filters) {
let changed = false
const options = filter.viewOptions
if (options !== undefined) {
if (options != null) {
if (options.orderBy[0] === 'doneState') {
options.orderBy[0] = 'status'
changed = true