Skip to content

Commit

Permalink
Fix property panel not showing false-ish values
Browse files Browse the repository at this point in the history
  • Loading branch information
HexyWitch committed May 21, 2015
1 parent 5e6aa20 commit 9d2afd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/property/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ angular.module('app.property', [])
domTitle.value = block.title || '';

for (key in block.node.prototype.properties) {
$scope.addRow(key, block.properties[key] || '');
var value = block.properties[key] !== '' ? block.properties[key] : '';
$scope.addRow(key, value);
}

if (block.type == 'action') {
for (key in block.node.prototype.output) {
$scope.addOutput(key, block.output[key] || '');
var value = block.output[key] !== '' ? block.output[key] : '';
$scope.addOutput(key, value);
}
}
} else {
Expand Down

0 comments on commit 9d2afd0

Please sign in to comment.