I am making a query to my postgres database, and then displaying the data in a table, here is a snippet of the part that is troubling me.
<%= for a <- @As do %> <tr> <td> <%= a |> hd %> <img loading="lazy" padding-bottom="30px" height="100px" src="/images/Folder/<%= a |> tl |> hd%>.png" alt="No Image" /> </td> ...
I have a phx-change form that is supposed to do an autocomplete search, but when I type a letter into it, the page reloads. However, when I remove the image, the page does not reload and the autocomplete search works properly. I was confused on why that happened.
Edit, adding Stacktrace
349.1> terminating ** (ArgumentError) lists in Phoenix.HTML and templates may only contain integers representing bytes, binaries or other lists, got invalid entry: nil