File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ ## 2024-04-03
2
+
3
+ - 修复了因部分作业缺少动作列表而渲染失败的问题
4
+
1
5
## 2024-04-01
2
6
3
7
- 添加了作业集功能
Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ function OperationViewerInnerDetails({ operation }: { operation: Operation }) {
433
433
< div className = "col-span-2" >
434
434
< H4 className = "mb-4" > 动作序列</ H4 >
435
435
436
- { operation . parsedContent . actions . length ? (
436
+ { operation . parsedContent . actions ? .length ? (
437
437
< div className = "flex flex-col pb-8" >
438
438
{ operation . parsedContent . actions . map ( ( action , i ) => (
439
439
< ActionCard action = { action } key = { i } />
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { OpDifficulty } from './operation'
5
5
*/
6
6
export namespace CopilotDocV1 {
7
7
export interface Operation {
8
- actions : Action [ ]
8
+ actions ? : Action [ ]
9
9
doc : Doc
10
10
groups ?: Group [ ]
11
11
minimumRequired : string
Original file line number Diff line number Diff line change @@ -70,9 +70,12 @@ export namespace TokenManager {
70
70
} ) ( )
71
71
72
72
// reset when finished, so that the next call will trigger a new check
73
- pendingGetToken . finally ( ( ) => {
74
- pendingGetToken = undefined
75
- } )
73
+ pendingGetToken
74
+ . finally ( ( ) => {
75
+ pendingGetToken = undefined
76
+ } )
77
+ // we still need to catch the error here, otherwise it will be unhandled
78
+ . catch ( noop )
76
79
77
80
return pendingGetToken
78
81
}
You can’t perform that action at this time.
0 commit comments