Fix markup

This commit is contained in:
aignatov-bio 2020-11-04 13:32:34 +01:00
parent 12fdea8d89
commit 5d0ab1f2e9

View file

@ -18,9 +18,9 @@ class MarvinJsAssetsController < ApplicationController
if result[:asset] && marvin_params[:object_type] == 'Step'
render json: {
html: render_to_string(partial: 'assets/asset.html.erb', locals: {
asset: result[:asset],
gallery_view_id: marvin_params[:object_id]
})
asset: result[:asset],
gallery_view_id: marvin_params[:object_id]
})
}
elsif result[:asset] && marvin_params[:object_type] == 'Result'
@my_module = result[:object].my_module