Skip to content

Commit

Permalink
Merge pull request #800 from openworm/fix/799
Browse files Browse the repository at this point in the history
fix/799: aspectConfiguration additional check in case not defined in …
  • Loading branch information
tarelli authored May 21, 2018
2 parents bd455b3 + 8a82695 commit 8a69dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/webapp/js/geppettoProject/ProjectsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ define(function (require) {
dataType == GEPPETTO.Resources.STATE_VARIABLE && experiments[j].status == GEPPETTO.Resources.ExperimentStatus.COMPLETED
|| dataType == GEPPETTO.Resources.PARAMETER
){
if (experiments[j].aspectConfigurations[0] != undefined) {
if (experiments[j].aspectConfigurations != null ? (experiments[j].aspectConfigurations[0] != undefined ? true : false) : false) {
dataSource = (dataType == GEPPETTO.Resources.STATE_VARIABLE) ?
experiments[j].aspectConfigurations[0].watchedVariables :
experiments[j].aspectConfigurations[0].modelParameter;
Expand Down

0 comments on commit 8a69dd2

Please sign in to comment.