Skip to content

Commit

Permalink
fix: empty checking
Browse files Browse the repository at this point in the history
  • Loading branch information
armoucar committed Aug 18, 2020
1 parent 5480a61 commit d60dc10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/ngx-highlightjs/src/lib/highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export class Highlight implements OnChanges {

ngOnChanges(changes: SimpleChanges) {
if (
this.code &&
changes.code &&
typeof changes.code.currentValue !== 'undefined' &&
changes.code.currentValue !== changes.code.previousValue
Expand Down

0 comments on commit d60dc10

Please sign in to comment.