Commit 0ff36db7 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

check if project exists

parent 55ef0bc0
Pipeline #31046 failed with stage
in 16 minutes and 48 seconds
......@@ -10,6 +10,8 @@ minerva (15.0.3) stable; urgency=medium
CellDesigner (#1281)
* Bug fix: concurrency issue that could happen rarely on first search of the
map and put the project into "unsearchable" state is fixed (#1333)
* Bug fix: when edit project buton was clicked on project that was removed in
another tab there was an error thrown (#1343)
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 8 Jul 2020 16:00:00 +0200
......
......@@ -529,9 +529,13 @@ MapsAdminPanel.prototype.showEditDialog = function (id) {
var self = this;
GuiConnector.showProcessing();
return self.getServerConnector().getProject(id).then(function (project) {
return self.getDialog(project);
}).then(function (dialog) {
dialog.open();
if (project === null) {
GuiConnector.warn("Project \"" + id + "\" does not exist");
} else {
return self.getDialog(project).then(function (dialog) {
dialog.open();
});
}
}).finally(function () {
GuiConnector.hideProcessing();
});
......
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