Skip to content

Instantly share code, notes, and snippets.

@jimarnold
Created December 15, 2021 18:27
Show Gist options
  • Save jimarnold/138422cc34b44aa3e537d8caee9d8691 to your computer and use it in GitHub Desktop.
Save jimarnold/138422cc34b44aa3e537d8caee9d8691 to your computer and use it in GitHub Desktop.
commit e8492c0f5c80762ababf1e80148b23307bc2a2d6
Author: Jim Arnold <jarnold@etsy.com>
Date: Wed Dec 15 13:26:05 2021 -0500
[TI-226] fix for adding a migration with a hand-typed attribute value id
diff --git a/src/views/selection/MigrationSelection.js b/src/views/selection/MigrationSelection.js
index 0b95e8a60..1065e61d3 100644
--- a/src/views/selection/MigrationSelection.js
+++ b/src/views/selection/MigrationSelection.js
@@ -209,7 +209,11 @@ export default class MigrationSelection extends React.Component {
if (this.state.migrationAttributeId) {
ottMap = ottMap.set(
'attributeValues',
- Map({ [this.state.migrationAttributeId]: List(this.state.migrationValueIds) })
+ Map({
+ [this.state.migrationAttributeId]: List(
+ this.state.migrationValueIds.map(v => parseInt(v))
+ )
+ })
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment