Skip to content

Commit 9bd4aec

Browse files
authored
Missing return newId when creating new drug (#13)
1 parent 6db1aad commit 9bd4aec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

thunorweb/webpack/thunorweb/js/plate_mapper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ var plate_mapper = function () {
522522
pyHTS.state.drugs.push({'id': newId, 'name': name});
523523
updateDrugTypeAheads();
524524
successCallback();
525+
return newId;
525526
} else {
526527
$.ajax({
527528
type: 'POST',

0 commit comments

Comments
 (0)