Skip to content

Commit

Permalink
Merge branch 'master' into cspell-modify
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx authored Aug 10, 2023
2 parents 71775e1 + 9be9c5e commit 8ddcc73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/duplicate/DuplicateTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ export default class DuplicateTask {
// parse reviver to replace identifiers
clonedParent = JSON.parse(clonedParent, (key, value) => {
if (
value !== null &&
value !== undefined &&
Object.prototype.hasOwnProperty.call(value, 'key') &&
Object.prototype.hasOwnProperty.call(value, 'namespace') &&
value.key === oldId.key &&
Expand Down

0 comments on commit 8ddcc73

Please sign in to comment.