mirror of
https://github.com/stashapp/stash.git
synced 2026-04-19 13:31:15 +02:00
Remove duplicates from ScrapedTagsRow (#5733)
This commit is contained in:
parent
daed09e487
commit
7a4ff20d66
1 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import {
|
|||
import { TagIDSelect } from "src/components/Tags/TagSelect";
|
||||
import { StudioSelect } from "src/components/Studios/StudioSelect";
|
||||
import { GroupSelect } from "src/components/Groups/GroupSelect";
|
||||
import { uniq } from "lodash-es";
|
||||
|
||||
interface IScrapedStudioRow {
|
||||
title: string;
|
||||
|
|
@ -270,7 +271,7 @@ export const ScrapedTagsRow: React.FC<
|
|||
: scrapeResult.originalValue;
|
||||
const value = resultValue ?? [];
|
||||
|
||||
const selectValue = value.map((p) => p.stored_id ?? "");
|
||||
const selectValue = uniq(value.map((p) => p.stored_id ?? ""));
|
||||
|
||||
// we need to use TagIDSelect here because we want to use the local name
|
||||
// of the tag instead of the name from the source
|
||||
|
|
|
|||
Loading…
Reference in a new issue