BugFixes galore
This commit is contained in:
@@ -69,8 +69,9 @@ export default function ConsolePage() {
|
||||
});
|
||||
|
||||
// Receive buffered history on connect
|
||||
socket.on("history", (data: { lines: string[] }) => {
|
||||
const historicalLines = data.lines.map((line) => ({
|
||||
socket.on("history", (data: string[] | { lines: string[] }) => {
|
||||
const rawLines = Array.isArray(data) ? data : (data?.lines ?? []);
|
||||
const historicalLines = rawLines.map((line) => ({
|
||||
text: line,
|
||||
timestamp: Date.now(),
|
||||
type: classifyLine(line) as LogLine["type"],
|
||||
|
||||
Reference in New Issue
Block a user