File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
platform/lib/platform_web/live/projects_live Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -515,10 +515,11 @@ defmodule PlatformWeb.ProjectsLive.BulkUploadLive do
515515 Found <%= length ( @ changesets ) %> incidents.
516516 </ strong >
517517 If everything below looks right, click "Publish" to publish these incidents to Atlos. Note that media will be archived on a best-effort basis.
518+ < span :if = { Enum . count ( valid ) > 50 } > We have truncated the list to the first 50 incidents.</ span >
518519 </ p >
519520 </ aside >
520521 < div class = "grid gap-4 grid-cols-1 mt-4 " >
521- <%= for { changeset, idx} <- valid do %>
522+ <%= for { changeset, idx} <- Enum . slice ( valid , 0 .. 50 ) do %>
522523 < div class = "rounded-lg border " >
523524 < p class = "sec-head text-md p-4 border-b text-sm " >
524525 < span class = "text-gray-500 " > Row <%= idx %> :</ span > <%= Ecto.Changeset . get_field (
@@ -528,8 +529,7 @@ defmodule PlatformWeb.ProjectsLive.BulkUploadLive do
528529 </ p >
529530 < div class = "grid gap-4 grid-cols-1 lg:grid-cols-3 text-sm p-4 " >
530531 <% applied_media =
531- Ecto.Changeset . apply_changes ( changeset )
532- |> Platform.Repo . preload ( [ attr_assignments: [ :user ] ] , force: true ) %>
532+ Ecto.Changeset . apply_changes ( changeset ) %>
533533 <%= for attr <- Material.Attribute . active_attributes ( project: @ project ) do %>
534534 <% value = Material . get_attribute_value ( applied_media , attr ) %>
535535 <%= if not is_nil ( value ) and value != [ ] and value != "" and attr . schema_field != :attr_description do %>
You can’t perform that action at this time.
0 commit comments