Skip to content

Commit

Permalink
fix(core): do not automatically inject parameterConfig on pipelines (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed May 16, 2019
1 parent 1c8b570 commit d805c18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Parameters extends React.Component<IParametersProps, IParametersSta
togglePins={this.togglePins}
removeParameter={this.removeParameter}
updateParameter={this.updateParameter}
isMultiple={parameters.length > 1}
isMultiple={parameters && parameters.length > 1}
onSortEnd={this.handleSortEnd}
lockAxis={'y'}
useDragHandle={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ module.exports = angular

this.checkFeatureFlag = flag => !!SETTINGS.feature[flag];

//Call back function for full controlled react component
$scope.pipeline.parameterConfig = $scope.pipeline.parameterConfig || [];

$scope.addParameter = () => {
if (!$scope.pipeline.parameterConfig) {
$scope.pipeline.parameterConfig = [];
Expand Down

0 comments on commit d805c18

Please sign in to comment.