FIX add debounce for field

and refresh only form update
This commit is contained in:
sokie
2026-01-13 13:45:40 +01:00
parent ff921799e4
commit 30d3ee167e
2 changed files with 17 additions and 9 deletions

View File

@@ -7,11 +7,11 @@ class Import::ConfigurationsController < ApplicationController
end
def update
@import.update!(import_params)
if params[:refresh_only]
@import.update!(rows_to_skip: params.dig(:import, :rows_to_skip).to_i)
redirect_to import_configuration_path(@import)
else
@import.update!(import_params)
@import.generate_rows_from_csv
@import.reload.sync_mappings