Skip to content

Commit

Permalink
Fix urls disappearing when merging scenes (#4005)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilo2 authored Aug 7, 2023
1 parent 8ac3353 commit a597bd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/v2.5/src/components/Scenes/SceneMergeDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ const SceneMergeDetails: React.FC<ISceneMergeDetailsProps> = ({
new ScrapeResult(dest.code, sources.find((s) => s.code)?.code, !dest.code)
);
setURL(
new ScrapeResult(dest.urls, sources.find((s) => s.urls)?.urls, !dest.urls)
new ScrapeResult(
dest.urls,
sources.find((s) => s.urls)?.urls,
!dest.urls?.length
)
);
setDate(
new ScrapeResult(dest.date, sources.find((s) => s.date)?.date, !dest.date)
Expand Down

0 comments on commit a597bd2

Please sign in to comment.