Skip to content

Commit

Permalink
Simplify display of attached resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
obuchtala committed Apr 23, 2020
1 parent 3ff6b22 commit 4eb15b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/AttachedResourceComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ export default class AttachedResourceComponent extends SelectableNodeComponent {
const { title, href } = node
el.append(
$$('span', {},
title ? $$('span', { class: 'se-title' }, title) : null,
$$('span', { class: 'se-href' },
title ? `(${href})` : href
)
$$('span', { class: 'se-title' }, title || 'Untitled'),
$$('span', { class: 'se-href' }, `(${href})`)
)
)
return el
Expand Down

0 comments on commit 4eb15b1

Please sign in to comment.