修复初始化列表信息可能导致崩溃的问题

pull/1411/head
lyswhut 2023-06-10 19:59:16 +08:00
parent 94403be9a8
commit 5ef84916bb
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export const queryAllUserList = () => {
const list = createListQueryStatement().all() as LX.DBService.UserListInfo[]
for (const info of list) {
// 兼容v2.3.0之前版本插入数字类型的ID导致其意外在末尾追加 .0 的问题
if (info.sourceListId?.endsWith('.0')) {
if (info.sourceListId?.endsWith?.('.0')) {
info.sourceListId = info.sourceListId.replace(idFixRxp, '')
}
}