mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Remove duplicates from ScrapedTagsRow (#5733)
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
|||||||
import { TagIDSelect } from "src/components/Tags/TagSelect";
|
import { TagIDSelect } from "src/components/Tags/TagSelect";
|
||||||
import { StudioSelect } from "src/components/Studios/StudioSelect";
|
import { StudioSelect } from "src/components/Studios/StudioSelect";
|
||||||
import { GroupSelect } from "src/components/Groups/GroupSelect";
|
import { GroupSelect } from "src/components/Groups/GroupSelect";
|
||||||
|
import { uniq } from "lodash-es";
|
||||||
|
|
||||||
interface IScrapedStudioRow {
|
interface IScrapedStudioRow {
|
||||||
title: string;
|
title: string;
|
||||||
@@ -270,7 +271,7 @@ export const ScrapedTagsRow: React.FC<
|
|||||||
: scrapeResult.originalValue;
|
: scrapeResult.originalValue;
|
||||||
const value = resultValue ?? [];
|
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
|
// we need to use TagIDSelect here because we want to use the local name
|
||||||
// of the tag instead of the name from the source
|
// of the tag instead of the name from the source
|
||||||
|
|||||||
Reference in New Issue
Block a user