From 8e768cf640182287f7d99782ff95bc3b4aaf7ba6 Mon Sep 17 00:00:00 2001 From: Patrick Forringer Date: Sun, 10 May 2020 12:02:05 -0500 Subject: [PATCH] move path clone out of path name conditional --- packages/plugin-mirror/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {