Skip to content

Commit

Permalink
fix(script): 优化搜索结果空白的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Apr 20, 2023
1 parent d8764a9 commit 5de62f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/src/utils/work.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function simplifyWorkResult(
finish: wr.result?.finish,
searchInfos:
wr.ctx?.searchInfos.map((sr) => ({
error: sr.error ? sr.error?.message || String(sr.error?.message) : undefined,
error: sr.error ? sr.error?.message || String(sr.error) : undefined,
name: sr.name,
homepage: sr.homepage,
results: sr.results.map((ans) => [ans.question, ans.answer])
Expand Down

0 comments on commit 5de62f5

Please sign in to comment.