mirror of
https://github.com/nasa/openmct.git
synced 2025-04-15 23:16:46 +00:00
check for null before checking before hasOwnProperty Co-authored-by: Scott Bell <scott@traclabs.com>
This commit is contained in:
parent
32b68cf0df
commit
339640e0d6
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user