Skip to content

Commit

Permalink
fix: fix content null issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 6, 2020
1 parent 2da7363 commit f6bf94f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions projects/ledge-render/src/lib/ledge-render.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ export class LedgeRenderComponent implements OnInit, AfterViewInit, OnChanges {

private tok() {
const token: Token = this.token;
console.log(token.type);
switch (token.type) {
case 'table':
this.markdownData.push(token);
Expand Down Expand Up @@ -171,7 +170,7 @@ export class LedgeRenderComponent implements OnInit, AfterViewInit, OnChanges {
);
} else {
const tok = this.tok();
if (tok.children) {
if (tok && tok.children) {
itemBody.children = tok.children;
} else {
itemBody.name += tok;
Expand Down Expand Up @@ -306,7 +305,6 @@ export class LedgeRenderComponent implements OnInit, AfterViewInit, OnChanges {
}

stringify(str: any) {
console.log(str);
return JSON.stringify(str);
}
}

0 comments on commit f6bf94f

Please sign in to comment.