Chore: Fix errant text appearing in AnnotationSettingsList table (#42360)

This commit is contained in:
Josh Hunt 2021-11-26 13:25:08 +00:00 committed by GitHub
parent 820aa3ac59
commit 130386f84b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,15 +40,14 @@ export const AnnotationSettingsList: React.FC<Props> = ({ dashboard, onNew, onEd
<tbody>
{dashboard.annotations.list.map((annotation, idx) => (
<tr key={`${annotation.name}-${idx}`}>
{!annotation.builtIn && (
<td className="pointer" onClick={() => onEdit(idx)}>
<Icon name="comment-alt" /> &nbsp; {annotation.name}
</td>
)}
{annotation.builtIn && (
{annotation.builtIn ? (
<td style={{ width: '90%' }} className="pointer" onClick={() => onEdit(idx)}>
<Icon name="comment-alt" /> &nbsp; <em className="muted">{annotation.name} (Built-in)</em>
</td>
) : (
<td className="pointer" onClick={() => onEdit(idx)}>
<Icon name="comment-alt" /> &nbsp; {annotation.name}
</td>
)}
<td className="pointer" onClick={() => onEdit(idx)}>
{annotation.datasource || 'Default'}