diff --git a/app/controllers/execution_environments_controller.rb b/app/controllers/execution_environments_controller.rb index 3576ee99..4449fa41 100644 --- a/app/controllers/execution_environments_controller.rb +++ b/app/controllers/execution_environments_controller.rb @@ -22,7 +22,10 @@ class ExecutionEnvironmentsController < ApplicationController destroy_and_respond(object: @execution_environment) end - def edit; end + def edit + # Add the current execution_environment if not already present in the list + @docker_images |= [@execution_environment.docker_image] + end def execute_command @docker_client = DockerClient.new(execution_environment: @execution_environment)