Skip to content

Commit

Permalink
Fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
HexyWitch committed Jun 1, 2015
1 parent 3284d06 commit c912a66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/app/menu/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ angular.module('app.menu', ['app.modal'])
{ name: "All files", extensions: ['*']}
]
}, function(filenames) {
var filename = filenames[0];
$window.app.editor.openTreeFile(filenames[0]);
if (filenames) {
var filename = filenames[0];
$window.app.editor.openTreeFile(filenames[0]);
}
});

return false;
Expand Down
1 change: 0 additions & 1 deletion src/app/property/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ angular.module('app.property', [])
link: function(scope, element, attrs) {
element.bind('click', function() {
element.parent().parent().remove();
scope.updateProperties();
});
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ this.b3editor = this.b3editor || {};
block.id = b3.createUUID();
block.title = node.title;
block.description = node.description;
block.properties = node.parameters;
block.properties = node.parameters || {};

if (node.type == 'action')
block.output = node.output || {};
Expand Down

0 comments on commit c912a66

Please sign in to comment.