-
- <.note_list notes={@notes_updated} layout={@channel.layout} />
-
+ <%= if @channel do %>
+
+
+ <.note_list notes={@notes_updated} layout={@channel.layout} />
+
-
- <.note_list notes={@notes_published} layout={@channel.layout} />
-
-
-<% end %>
+
+ <.note_list notes={@notes_published} layout={@channel.layout} />
+
+
+ <% end %>
+