Skip to content

Commit

Permalink
Replace filter() by find()
Browse files Browse the repository at this point in the history
  • Loading branch information
eputtone committed Sep 23, 2021
1 parent 12f9f48 commit 5f6a910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nflow-explorer/src/app/services/WorkflowService.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

var getStateVariablesInQuery = false;
if (config.searchResultColumns) {
getStateVariablesInQuery = config.searchResultColumns.filter(function (column) {
getStateVariablesInQuery = config.searchResultColumns.find(function (column) {
return column.field.startsWith('stateVariables');
}).length > 0;
});
}

function get(workflowId) {
Expand Down

0 comments on commit 5f6a910

Please sign in to comment.