Skip to content

Commit

Permalink
fix: upload subtitle language selection duplicated languages
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-oki committed Sep 18, 2024
1 parent cc7a800 commit 6ce0e01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/forms/SeriesUploadForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { ColumnDef } from "@tanstack/react-table";
import { isString } from "lodash";
import { isString, uniqBy } from "lodash";
import {
useEpisodesBySeriesId,
useEpisodeSubtitleModification,
Expand Down Expand Up @@ -100,7 +100,7 @@ const SeriesUploadForm: FunctionComponent<Props> = ({
const profile = useLanguageProfileBy(series.profileId);
const languages = useProfileItemsToLanguages(profile);
const languageOptions = useSelectorOptions(
languages,
uniqBy(languages, "code2"),
(v) => v.name,
(v) => v.code2,
);
Expand Down

0 comments on commit 6ce0e01

Please sign in to comment.