Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
a30b62f883
commit
18df56887d
@@ -761,7 +761,7 @@ function ImportPage() {
|
||||
);
|
||||
const toUpdate = withConflict
|
||||
.filter((r) => existingByExternalId.has(String(r.external_id)))
|
||||
.map((r) => ({ ...r, id: existingByExternalId.get(String(r.external_id)) }));
|
||||
.map((r) => ({ ...r, id: existingByExternalId.get(String(r.external_id))! }));
|
||||
const toInsert = withConflict.filter((r) => !existingByExternalId.has(String(r.external_id)));
|
||||
|
||||
if (toUpdate.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user