Commit 228c85f7 authored by Florian Hübsch's avatar Florian Hübsch
Browse files

Remove ap output from ReactionAPI.

parent 46f8dc81
......@@ -137,19 +137,8 @@ module Chemotion
requires :materials, type: Hash
end
# before do
# error!('401 Unauthorized', 401) unless ElementPolicy.new(@current_user, Reaction).create?
# end
post do
ap params
attributes = declared(params, include_missing: false).symbolize_keys
ap attributes
materials = attributes.delete(:materials)
collection_id = attributes.delete(:collection_id)
......
......@@ -126,7 +126,6 @@ class UIStore {
let state = this.state;
let hasChanged = (!state.currentCollection || state.currentCollection.id != collection.id) || (state.currentSearchSelection != null);
// TODO state.pagination does not make sense
if(hasChanged) {
this.state.currentCollection = collection;
this.state.currentCollectionId = collection.id;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment