diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 6f84c911..a4b47a16 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -167,6 +167,6 @@ class PostsController < ApplicationController # Instruye al editor a olvidarse el contenido del artículo. Usar # cuando hayamos guardado la información correctamente. def forget_content - flash[:js] = { target: 'editor', action: 'forget-content', keys: params[:storage_keys].to_json } + flash[:js] = { target: 'editor', action: 'forget-content', keys: (params[:storage_keys] || []).to_json } end end