增强后端 TypeScript 严格类型检查
This commit is contained in:
@@ -109,6 +109,10 @@ export function resolveOrderItemSyncPlan(
|
||||
|
||||
if (matchedIndex >= 0) {
|
||||
const matched = unmatchedExisting.splice(matchedIndex, 1)[0]
|
||||
if (!matched) {
|
||||
creates.push(item)
|
||||
continue
|
||||
}
|
||||
updates.push({
|
||||
orderItemId: matched.id,
|
||||
item,
|
||||
|
||||
Reference in New Issue
Block a user