Skip to content

Commit 44215da

Browse files
fix(fixtures): guard settled replay expansion without source
1 parent cc2ac60 commit 44215da

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

‎scripts/fixtures/issue-16534/replay.js‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@
6363
);
6464
if (options.shelf === "settled") {
6565
const source = snapshot.threads.find((t) => t.id === "triage-A-8");
66-
for (let i = 13; i <= 26; i++)
67-
snapshot.threads.push({
68-
...source,
69-
id: "triage-A-" + i,
70-
title: "Triage A thread " + i,
71-
latestMessageAt: "2026-10-21T23:" + String(i).padStart(2, "0") + ":00.000Z",
72-
updatedAt: "2026-10-21T23:" + String(i).padStart(2, "0") + ":00.000Z",
73-
});
66+
if (source)
67+
for (let i = 13; i <= 26; i++)
68+
snapshot.threads.push({
69+
...source,
70+
id: "triage-A-" + i,
71+
title: "Triage A thread " + i,
72+
latestMessageAt: "2026-10-21T23:" + String(i).padStart(2, "0") + ":00.000Z",
73+
updatedAt: "2026-10-21T23:" + String(i).padStart(2, "0") + ":00.000Z",
74+
});
7475
}
7576
snapshot.projects = snapshot.projects?.filter((p) => p.id?.startsWith("triage-")) || [];
7677
for (const thread of snapshot.threads) {

0 commit comments

Comments
 (0)