Skip to content

Commit

Permalink
Update ReplaceFormattedText.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Osokin committed Dec 29, 2022
1 parent 3a6aa59 commit 690df64
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jsx/ReplaceFormattedText.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,13 @@ function get(coll) {
// Copy object properties
function copyProps(o) {
var p = {};
for (var k in o) p[k] = o[k];
for (var k in o) {
if (o.hasOwnProperty(k)) {
try {
p[k] = o[k];
} catch (err) {} // Skip undefined properties
}
}
return p;
}

Expand Down

0 comments on commit 690df64

Please sign in to comment.