Merge pull request #5095 from aignatov-bio/ai-sci-8074-fix-protocol-duplication

Fix protocol duplication table reload [SCI-8074]
This commit is contained in:
aignatov-bio 2023-03-08 10:15:19 +01:00 committed by GitHub
commit 7a54856a54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -516,13 +516,12 @@ var ProtocolsIndex = (function() {
url: $el.data('url'),
data: JSON.stringify({ ids: rowsSelected }),
contentType: 'application/json'
},
(data) => {
animateSpinner(null, false);
HelperModule.flashAlertMsg(data.message, 'success');
reloadTable();
}
).error((data) => {
).success((data) => {
animateSpinner(null, false);
HelperModule.flashAlertMsg(data.message, 'success');
reloadTable();
}).error((data) => {
animateSpinner(null, false);
HelperModule.flashAlertMsg(data.responseJSON.message, 'danger');
});