Commit 31a6b43b authored by DMyTryC's avatar DMyTryC Committed by benjaminParisel

Fixing the shown error in the console (#2561)

parent e6d93051
......@@ -13,13 +13,17 @@
};
function openModal(name) {
openModals.push(name);
modals[name].open();
if (name && modals[name]) {
openModals.push(name);
modals[name].open();
}
}
function closeModal() {
var name = openModals.pop();
modals[name].close();
if (name && modals[name]) {
modals[name].close();
}
}
function registerModal(name, modal) {
......
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