diff --git a/src/main/worker/dbService/modules/list/dbHelper.ts b/src/main/worker/dbService/modules/list/dbHelper.ts index a38e85ed..8e32d272 100644 --- a/src/main/worker/dbService/modules/list/dbHelper.ts +++ b/src/main/worker/dbService/modules/list/dbHelper.ts @@ -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, '') } }