Fix eslint warnings
This commit is contained in:
parent
fba72e723f
commit
7b10670a88
6 changed files with 19 additions and 10 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue