Skip to content

Commit

Permalink
fix: planning items with no related events the ‘related events' secti…
Browse files Browse the repository at this point in the history
…on in preview displays a constant loading circle [STT-137]
  • Loading branch information
devketanpro committed Feb 5, 2025
1 parent 9969566 commit 2eb06ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/agenda/components/AgendaPreviewEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ class AgendaPreviewEventComponent extends React.Component<AgendaPreviewEventProp
render() {
const {itemsById, eventIds} = this.props;

if (!eventIds || eventIds.length === 0) {
return null;
}

return (
<div className="agenda-planning__container">
<div className="preview__content-block">
Expand Down

0 comments on commit 2eb06ef

Please sign in to comment.