Skip to content

Commit a08d219

Browse files
committed
fix: view flickering after rating
1 parent f8ffadb commit a08d219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/viewer/OperationViewer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ export const OperationViewer: ComponentType<{
180180

181181
wrapErrorMessage(
182182
(e: NetworkError) => `提交评分失败:${e.message}`,
183-
mutate(async () => {
183+
mutate(async (val) => {
184184
await apiPostRating(operationId, decision)
185-
return undefined
185+
return val
186186
}),
187187
).catch(noop)
188188
}

0 commit comments

Comments
 (0)