Fixed for assets that belong to protocol step [SCI-5996]

This commit is contained in:
Martin Artnik 2021-08-12 13:45:38 +02:00
parent a65d8ad365
commit 1db06b46f7

View file

@ -137,7 +137,7 @@ class BioEddieAssetsController < ApplicationController
activity_type: :register_molecule,
owner: current_user,
team: asset.team,
project: asset.my_module.experiment.project,
project: asset&.my_module&.experiment&.project,
subject: asset,
message_items: {
description: asset.blob.metadata['description'],