Fix eslint warnings

This commit is contained in:
Joscha 2025-02-10 15:42:21 +01:00
parent fba72e723f
commit 7b10670a88
6 changed files with 19 additions and 10 deletions

View file

@ -41,7 +41,7 @@ const children = computed(() => {
const seen = new Map<string, number>();
const children = [];
for (const id of note.value.children) {
const iteration = seen.get(id) || 0;
const iteration = seen.get(id) ?? 0;
seen.set(id, iteration + 1);
children.push(new Segment(id, iteration));
}