We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f95e584 commit 499d084Copy full SHA for 499d084
packages/playwright/src/mcp/browser/sessionLog.ts
@@ -79,7 +79,7 @@ export class SessionLog {
79
code = code.trim();
80
if (isUpdate) {
81
const lastEntry = this._pendingEntries[this._pendingEntries.length - 1];
82
- if (lastEntry.userAction?.name === action.name) {
+ if (lastEntry?.userAction?.name === action.name) {
83
lastEntry.userAction = action;
84
lastEntry.code = code;
85
return;
0 commit comments