Skip to content

Commit

Permalink
fix: remove useless id field
Browse files Browse the repository at this point in the history
  • Loading branch information
koen1711 committed Sep 22, 2024
1 parent 11716d0 commit c9ad724
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/core/popups/popups/SerialMonitor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function insertDate() {
{/if}
{#if mode === Mode.TEXT}
<div class="content" bind:this={element}>
{#each $log as item (item.id)}
{#each $log as item}
<div class="item">
<div class="date">{formatDate(item.date)}</div>
<div class="text">{item.content}</div>
Expand Down
2 changes: 0 additions & 2 deletions src/lib/state/workspace.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export enum Prompt {
export class ConnectionFailedError {}

interface LogItem {
id: string;
date: Date;
content: string;
}
Expand Down Expand Up @@ -96,7 +95,6 @@ function createLogState() {
[
...log,
...items.map((content) => ({
id: crypto.randomUUID(),
date: new Date(),
content,
})),
Expand Down

0 comments on commit c9ad724

Please sign in to comment.