Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
Labels should only appear if there's a label
  • Loading branch information
gkoscky committed Jan 16, 2024
1 parent d8168bb commit 1497648
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/DuneDashboard/DuneDashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ export default function DuneDashboard({source, label, aspectRatio}) {
return (
<div className={styles.DuneDashboard} style={{"--aspect-ratio": aspectRatio}}>
<iframe src={source} className={styles.root} />
<div className={styles.labels}>
{label && <div>{label}</div>}
</div>
{label &&
<div className={styles.labels}>
<div>{label}</div>
</div>
}
</div>
);
}

0 comments on commit 1497648

Please sign in to comment.