From 2d1ddfa65436fedd7558a9930adf002e0d7b4daf Mon Sep 17 00:00:00 2001 From: Moritz Date: Sun, 25 Jan 2026 18:36:33 +0100 Subject: [PATCH] Fix missing max_errors assign in GlobalSettingsLive Set max_errors as socket assign in mount/3 to make it available in templates. Fixes KeyError in CSV import UI. --- lib/mv_web/live/global_settings_live.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mv_web/live/global_settings_live.ex b/lib/mv_web/live/global_settings_live.ex index 0238cf0..0fbcbbe 100644 --- a/lib/mv_web/live/global_settings_live.ex +++ b/lib/mv_web/live/global_settings_live.ex @@ -75,6 +75,7 @@ defmodule MvWeb.GlobalSettingsLive do |> assign(:import_progress, nil) |> assign(:import_status, :idle) |> assign(:locale, locale) + |> assign(:max_errors, @max_errors) |> assign_form() # Configure file upload with auto-upload enabled # Files are uploaded automatically when selected, no need for manual trigger