We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2cf7df commit 61b47daCopy full SHA for 61b47da
packages/svelte-state/src/lib/selectionState.svelte.ts
@@ -34,7 +34,9 @@ export class SelectionState<T> {
34
}
35
36
get current() {
37
- return this.single ? (Array.from(this.#selected.current)[0] ?? null) : Array.from(this.#selected.current);
+ return this.single
38
+ ? (Array.from(this.#selected.current)[0] ?? null)
39
+ : Array.from(this.#selected.current);
40
41
42
isSelected(value: T) {
@@ -107,6 +109,4 @@ export class SelectionState<T> {
107
109
this.#selected.reset();
108
110
this.#selected.addEach(values);
111
-
112
0 commit comments