Fix scrape result row showing when results are same (#6415)

This commit is contained in:
WithoutPants 2025-12-17 08:19:45 +11:00 committed by GitHub
parent b23c3cd618
commit f71d0ac2dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,7 +184,7 @@ export const ScrapedObjectsRow = <T,>(props: IScrapedObjectsRow<T>) => {
field,
result,
onChange,
newObjects,
newObjects = [],
onCreateNew,
onLinkExisting,
renderObjects,
@ -202,7 +202,7 @@ export const ScrapedObjectsRow = <T,>(props: IScrapedObjectsRow<T>) => {
)}
onChange={onChange}
newValues={
onCreateNew ? (
onCreateNew && newObjects.length > 0 ? (
<NewScrapedObjects
newValues={newObjects ?? []}
onCreateNew={onCreateNew}