Fix performer select not working correctly in scrape dialog (#4199)

This commit is contained in:
WithoutPants
2023-10-13 15:43:23 +11:00
committed by GitHub
parent 1f0f5eb49c
commit 06c9d6f554

View File

@@ -151,7 +151,8 @@ export const ScrapedPerformersRow: React.FC<
isDisabled={!isNew}
onSelect={(items) => {
if (onChangeFn) {
onChangeFn(items);
// map the id back to stored_id
onChangeFn(items.map((p) => ({ ...p, stored_id: p.id })));
}
}}
values={selectValue}