Skip to content

Commit

Permalink
fix for a crash: check that properties exist
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Dec 18, 2023
1 parent 6cdc196 commit fc01ef5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/drafty.js
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ Drafty.tagName = function(style) {
* @returns {Object} object with HTML attributes.
*/
Drafty.attrValue = function(style, data) {
if (data && DECORATORS[style]) {
if (data && DECORATORS[style] && DECORATORS[style].props) {
return DECORATORS[style].props(data);
}

Expand Down
2 changes: 1 addition & 1 deletion umd/tinode.dev.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion umd/tinode.dev.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion umd/tinode.prod.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion umd/tinode.prod.js.map

Large diffs are not rendered by default.

0 comments on commit fc01ef5

Please sign in to comment.