diff --git a/packages/plugin-mirror/src/index.js b/packages/plugin-mirror/src/index.js index 4453ef405f8..15463194b17 100644 --- a/packages/plugin-mirror/src/index.js +++ b/packages/plugin-mirror/src/index.js @@ -52,8 +52,8 @@ export default { break } } + path = clone ? path.clone() : path if (clone && foundId !== null) { - path = clone ? path.clone() : path this.paths[`${prefix}${foundId}`] = path } for (let op in path.ops) {