diff --git a/src/methods/add-item.js b/src/methods/add-item.js index be4c5c5..fcede32 100644 --- a/src/methods/add-item.js +++ b/src/methods/add-item.js @@ -53,7 +53,7 @@ export default ({ data, save }, emitter, [newItem, canSave = false]) => { } if (!fixedItem) { - if (!newItem._id) { + if (!newItem._id || newItem._id === newItem.variation_id) { newItem._id = randomObjectId() } data.items.push(newItem)