Skip to content

Commit

Permalink
#41 fix showing compound in NGL view
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-postek-m2ms committed Mar 2, 2020
1 parent 526412d commit f82fc57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/components/preview/compounds/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ const showCompoundNglView = ({ majorViewStage, data }) => (dispatch, getState) =
INPUT_SMILES: [data.smiles],
INPUT_MOL_BLOCK: to_query_sdf_info
};

console.log(post_data);
api({
url: base_url + '/scoring/gen_conf_from_vect/',
method: METHOD.POST,
Expand Down Expand Up @@ -140,7 +142,6 @@ export const loadCompoundImageData = ({ width, height, onCancel, data, setImage
let url = undefined;
let key = undefined;

const base_url = window.location.protocol + '//' + window.location.host;
if (data.id !== undefined) {
url = new URL(base_url + '/api/cmpdimg/' + data.id + '/');
key = 'cmpd_image';
Expand Down

0 comments on commit f82fc57

Please sign in to comment.