diff --git a/app/models/repository_stock_value.rb b/app/models/repository_stock_value.rb index d87812290..05c84b02b 100644 --- a/app/models/repository_stock_value.rb +++ b/app/models/repository_stock_value.rb @@ -89,7 +89,7 @@ class RepositoryStockValue < ApplicationRecord end def update_data!(new_data, user) - self.low_stock_threshold = new_data[:low_stock_threshold] if new_data[:low_stock_threshold].present? + self.low_stock_threshold = new_data[:low_stock_threshold].presence if new_data[:low_stock_threshold] self.repository_stock_unit_item = repository_cell .repository_column .repository_stock_unit_items