Skip to content

Commit

Permalink
fixup! Fixes #17329: main parameter of a method is not displayed anym…
Browse files Browse the repository at this point in the history
…ore, and result classes are not ok anymore

Fixes #17329: main parameter of a method is not displayed anymore, and result classes are not ok anymore
  • Loading branch information
VinceMacBuche committed May 4, 2020
1 parent e2a6b0e commit cb0ed3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builder/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ <h3 class="title">Techniques</h3>
</div>
<div class="col no-technique" ng-show="!selectedTechnique">
<h1>Technique editor</h1>
<p>Create a new technique or edit one from the list on the left.</p>
<p>Create a new technique or edit one from the list on the left.</p>
<p>Define target configuration using the generic methods from the list on the right as building blocks.</p>
<button class="btn btn-success btn-lg" ng-click="newTechnique()" role="button">Create Technique <i class="fas fa-plus-circle"></i></button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion builder/js/ncf.js
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ $scope.onImportFileChange = function (fileEl) {
if (method_call.method_name in $scope.generic_methods ) {
var method = $scope.generic_methods[method_call.method_name];
var class_parameter = method.class_parameter;
var param = method.parameter.find(element => element.name === class_parameter);
var param = method_call.parameters.find(element => element.name === class_parameter);
if (param === undefined)
return method_call.parameters[0];
else
Expand Down

0 comments on commit cb0ed3e

Please sign in to comment.