Merge branch '17022-user-activity-report' refs #17022
[arvados.git] / apps / workbench / app / controllers / container_requests_controller.rb
index 9baf82795f0c0ee4bedabc688d7bf61fdfa973a0..be463b022cc6ed013ab652fba16140daf4e2d08d 100644 (file)
@@ -178,7 +178,7 @@ class ContainerRequestsController < ApplicationController
 
     if params[:use_existing] || params[:use_existing].nil?
       # If nil, reuse workflow steps but not the workflow runner.
-      @object.use_existing = (params[:use_existing] ? true : false)
+      @object.use_existing = !!params[:use_existing]
 
       # Pass the correct argument to arvados-cwl-runner command.
       if command[0] == 'arvados-cwl-runner'