Commit a353b2cd authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Handle empty images list in vm creation view

parent e707672d
......@@ -316,7 +316,7 @@
},
display_warning_for_image: function(image) {
if (!image.is_system_image() && !image.owned_by(synnefo.user)) {
if (image && !image.is_system_image() && !image.owned_by(synnefo.user)) {
$(".create-vm .image-warning").show();
} else {
$(".create-vm .image-warning").hide();
......
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