Skip to content

Commit 499d084

Browse files
authored
fix(session): an extra check for session log (#37508)
1 parent f95e584 commit 499d084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/playwright/src/mcp/browser/sessionLog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class SessionLog {
7979
code = code.trim();
8080
if (isUpdate) {
8181
const lastEntry = this._pendingEntries[this._pendingEntries.length - 1];
82-
if (lastEntry.userAction?.name === action.name) {
82+
if (lastEntry?.userAction?.name === action.name) {
8383
lastEntry.userAction = action;
8484
lastEntry.code = code;
8585
return;

0 commit comments

Comments
 (0)