Support legacy list param

pull/288/head
Amio 2019-06-20 11:17:59 +08:00
rodzic 9920c34b81
commit 0e14e6c49a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -41,7 +41,7 @@ function transformStatus (status: any, { list }) {
status = String(status)
if (list !== undefined) {
if (list === '1') list = '|' // compatible
if (list === '1' || list === '') list = '|' // compatible
status = status.replace(/,/g, ` ${list} `)
}