diff --git a/app/controllers/v1/collections_controller.rb b/app/controllers/v1/collections_controller.rb index 600fe8a73bc0fda8a2ac1e932a0e43bd4500486e..c419f856f07d27793de8a2708f6d210bac89a68a 100644 --- a/app/controllers/v1/collections_controller.rb +++ b/app/controllers/v1/collections_controller.rb @@ -43,7 +43,7 @@ class V1::CollectionsController < ApplicationController # PUT/PATCH /v1/users/1.json def update if @collection.update(collection_params) - @collection.add_items(extra_params[:items]) + @collection.add_items(extra_params[:items]) unless extra_params[:items].is_nil? render json: @collection, status: :ok else render json: @collection.errors, status: :unprocessable_entity