Skip to content

Commit f2c26a6

Browse files
authored
fix(timeline): error when no appRecord found (#1345)
1 parent 45110b8 commit f2c26a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app-backend-core/src/timeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function addTimelineEvent (options: TimelineEventOptions, app: App, ctx:
124124

125125
if (!isAllApps && app) {
126126
const appRecord = getAppRecord(app, ctx)
127-
registerTimelineEvent(eventData, appRecord, ctx)
127+
appRecord && registerTimelineEvent(eventData, appRecord, ctx)
128128
} else {
129129
ctx.appRecords.forEach(appRecord => registerTimelineEvent(eventData, appRecord, ctx))
130130
}

0 commit comments

Comments
 (0)