Skip to content

Commit 869978d

Browse files
committed
fix: extend ILogEntry type to include unique id
Signed-off-by: Maksim Sukharev <[email protected]>
1 parent 798d1c4 commit 869978d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/table/LogTable.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
</td>
3636
</tr>
3737

38-
<LogTableRow v-for="row, rowNumber in sortedRows"
39-
:key="rowNumber"
38+
<LogTableRow v-for="row in sortedRows"
39+
:key="row.id"
4040
:row="row"
4141
@show-details="showDetailsForRow" />
4242
</tbody>

src/interfaces/ILogEntry.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ export type IRawLogEntry = INextcloud14LogEntry | INextcloud22LogEntry
102102
* Fixed version of the log entry where the exception has its own field of type IException
103103
*/
104104
export interface ILogEntry extends Omit<INextcloud22LogEntry, 'exception'> {
105+
/** Unique ID, appended to each iterator element (see LogController#poll) */
106+
id: string
105107
/** Full exception with trace (if applicable) */
106108
exception?: IException
107109
}

0 commit comments

Comments
 (0)