Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit bd3f284

Browse files
Reverting code
1 parent ff9f4a8 commit bd3f284

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

website/src/repl/components/panel/SoundsTab.jsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,19 @@ export function SoundsTab() {
2525
.filter(([name]) => name.toLowerCase().includes(search.toLowerCase()));
2626

2727
if (soundsFilter === 'user') {
28-
filtered = filtered.filter(([key, { data }]) => !data.prebake);
29-
} else if (soundsFilter === 'drums') {
30-
filtered = filtered.filter(([_, { data }]) => data.type === 'sample' && data.tag === 'drum-machines');
31-
} else if (soundsFilter === 'samples') {
32-
filtered = filtered.filter(([_, { data }]) => data.type === 'sample' && data.tag !== 'drum-machines');
33-
} else if (soundsFilter === 'synths') {
34-
filtered = filtered.filter(([_, { data }]) => ['synth', 'soundfont'].includes(data.type));
28+
return filtered.filter(([_, { data }]) => !data.prebake);
29+
}
30+
if (soundsFilter === 'drums') {
31+
return filtered.filter(([_, { data }]) => data.type === 'sample' && data.tag === 'drum-machines');
32+
}
33+
if (soundsFilter === 'samples') {
34+
return filtered.filter(([_, { data }]) => data.type === 'sample' && data.tag !== 'drum-machines');
35+
}
36+
if (soundsFilter === 'synths') {
37+
return filtered.filter(([_, { data }]) => ['synth', 'soundfont'].includes(data.type));
3538
}
3639
return filtered;
40+
3741
}, [sounds, soundsFilter, search]);
3842

3943
// holds mutable ref to current triggered sound

0 commit comments

Comments
 (0)