fix: make hasOwnProperty check safe

This commit is contained in:
Nico Rehwaldt 2020-12-02 08:54:35 +01:00 committed by fake-join[bot]
parent 00686dcb3b
commit 3cecc95ecf
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ export default function BpmnReplace(
}
// so the applied properties from 'target' don't get lost
if (newBusinessObject.hasOwnProperty(propertyName)) {
if (has(newBusinessObject, propertyName)) {
return false;
}