修复初始化列表信息可能导致崩溃的问题
parent
94403be9a8
commit
5ef84916bb
|
@ -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, '')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue