Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/statifier_blocks/editor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3955,7 +3955,7 @@ if Code.ensure_loaded?(Phoenix.LiveView) do
# stored Erlang term) has no `:note` key: it reads as the absent note.
@spec block_note(Document.t(), Block.id()) :: String.t() | nil
defp block_note(document, id) do
case Enum.find(Document.blocks(document), &(&1.id == id)) do
case block_by_id(document, id) do
%Block{} = block -> Map.get(block, :note, "")
nil -> nil
end
Expand Down
Loading