Merge branch '11088-keep-cache-units'
[arvados.git] / apps / workbench / app / controllers / projects_controller.rb
index dbb087b9bb2c97dd1bb5e2ab4c2bbd0207800f9a..2cd668a28dcb58e438b91c41e97b59dfb1117724 100644 (file)
@@ -151,8 +151,8 @@ class ProjectsController < ApplicationController
 
       if item.class == Collection
         # Use delete API on collections
-        @removed_uuids << item.uuid
         item.destroy
+        @removed_uuids << item.uuid
       elsif item.owner_uuid == @object.uuid
         # Object is owned by this project. Remove it from the project by
         # changing owner to the current user.