Skip to content

Commit

Permalink
Set values as html to table rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Avinar-24 committed Oct 22, 2019
1 parent 65ab1dd commit 29ac9a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ export function DocViewTableRow({
)}
{displayUnderscoreWarning && <DocViewTableRowIconUnderscore />}
{displayNoMappingWarning && <DocViewTableRowIconNoMapping />}
<div className={valueClassName} data-test-subj={`tableDocViewRow-${field}-value`}>
{value}
</div>
<div
className={valueClassName}
data-test-subj={`tableDocViewRow-${field}-value`}
dangerouslySetInnerHTML={{ __html: value as string }}
/>
</td>
</tr>
);
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/data/common/field_formats/converters/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,3 @@ export class UrlFormat extends FieldFormat {
}
};
}

// console.log(UrlFormat);

0 comments on commit 29ac9a5

Please sign in to comment.