From 9bd4aece950519472c419dfb6344f0a0a31dfb17 Mon Sep 17 00:00:00 2001 From: roellgu1 <135720136+roellgu1@users.noreply.github.com> Date: Thu, 20 Jul 2023 00:22:18 +0200 Subject: [PATCH] Missing return newId when creating new drug (#13) --- thunorweb/webpack/thunorweb/js/plate_mapper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/thunorweb/webpack/thunorweb/js/plate_mapper.js b/thunorweb/webpack/thunorweb/js/plate_mapper.js index 4a9dd5ac..8c7b5250 100644 --- a/thunorweb/webpack/thunorweb/js/plate_mapper.js +++ b/thunorweb/webpack/thunorweb/js/plate_mapper.js @@ -522,6 +522,7 @@ var plate_mapper = function () { pyHTS.state.drugs.push({'id': newId, 'name': name}); updateDrugTypeAheads(); successCallback(); + return newId; } else { $.ajax({ type: 'POST',