test: 为mapper补充测试
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m56s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m56s
This commit is contained in:
@ -40,7 +40,7 @@ export function toQuestionListView(raw: Question): QuestionListView {
|
||||
isObject<ProductType>(item.product_type) &&
|
||||
({
|
||||
id: item.product_type.id,
|
||||
name: item.product_type.translations[0]?.name,
|
||||
name: item.product_type.translations[0]?.name ?? '',
|
||||
} satisfies QuestionListProductType);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user