Skip to content

Commit 61b47da

Browse files
committed
Format
1 parent b2cf7df commit 61b47da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/svelte-state/src/lib/selectionState.svelte.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export class SelectionState<T> {
3434
}
3535

3636
get current() {
37-
return this.single ? (Array.from(this.#selected.current)[0] ?? null) : Array.from(this.#selected.current);
37+
return this.single
38+
? (Array.from(this.#selected.current)[0] ?? null)
39+
: Array.from(this.#selected.current);
3840
}
3941

4042
isSelected(value: T) {
@@ -107,6 +109,4 @@ export class SelectionState<T> {
107109
this.#selected.reset();
108110
this.#selected.addEach(values);
109111
}
110-
111-
112112
}

0 commit comments

Comments
 (0)