Skip to content

Commit

Permalink
fix(netflix/properties): Fix undefined error when trying to access no…
Browse files Browse the repository at this point in the history
…nexistent original properties
  • Loading branch information
jrsquared committed Apr 18, 2017
1 parent b9a4b8e commit 1699409
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ module.exports = angular.module('spinnaker.netflix.pipeline.stage.property.detai
return stageContext.persistedProperties;
};

let extractProperties = (propertyList) => {
if (propertyList.length) return propertyList.map( prop => prop.property );
};

const extractProperties = (propertyList) => propertyList ? propertyList.map(prop => prop.property) : [];

});

0 comments on commit 1699409

Please sign in to comment.