Skip to content

Commit

Permalink
fix: untitled name fallback for bi-directional link panel (#6164)
Browse files Browse the repository at this point in the history
  • Loading branch information
regischen committed Jan 31, 2024
1 parent 9e06475 commit eb89aea
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ export class BiDirectionalLinkPanel extends WithDisposable(LitElement) {
config.setInteractable(false);
config.setPage(this.page);
config.setCustomContent((reference: AffineReference) => {
const title = reference.page.meta.title ?? 'Untitled';
const title = reference.page.meta.title
? reference.page.meta.title
: 'Untitled';
return html`<style>
.custom-reference-content svg {
position: relative;
Expand Down

0 comments on commit eb89aea

Please sign in to comment.