Skip to content

Commit c6cdaed

Browse files
fix: dashboard linting
1 parent 4a19eff commit c6cdaed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/dashboard/src/AuthSwitcher/Dashboard/Pages/VoiceLibrary/VoiceLibrarySearch.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ const GenderSelect: React.FC<GenderSelectProps> = ({
174174
let accentList = [
175175
VOICE_GENDERS.Male,
176176
VOICE_GENDERS.Female,
177-
...voices?.filter((voices) => voices.gender).map((voices) => voices.gender),
177+
...(voices
178+
?.filter((voices) => voices.gender)
179+
?.map((voices) => voices.gender) ?? []),
178180
];
179181
if (provider === VOICE_PROVIDERS.ELEVEN_LABS) {
180182
accentList.push(VOICE_GENDERS.Neutral);

0 commit comments

Comments
 (0)