Skip to content

Commit

Permalink
fix(FEC-8375): plugins data not evaluated (#143)
Browse files Browse the repository at this point in the history
pass value param to evaluation method
  • Loading branch information
OrenMe authored and yairans committed Jul 3, 2018
1 parent b55e9aa commit 0033e93
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/common/plugins/plugins-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const removeUnevaluatedExpression = (obj = {}): Object =>
(product, [key, value]): Object => {
if (Utils.Object.isObject(value)) {
product[key] = removeUnevaluatedExpression(value);
} else if (isValueEvaluated()) {
} else if (isValueEvaluated(value)) {
product[key] = value;
}
return product;
Expand All @@ -40,9 +40,11 @@ const removeUnevaluatedExpression = (obj = {}): Object =>
const getModel = (options: KalturaPlayerOptionsObject): Object => {
const dataModel: Object = {
pVersion: __VERSION__,
pName: __NAME__,
domRootElementId: options.targetId
pName: __NAME__
};
if (options.targetId) {
dataModel.domRootElementId = options.targetId;
}
if (options.provider && options.provider.env) {
dataModel['serviceUrl'] = options.provider.env.serviceUrl;
}
Expand Down

0 comments on commit 0033e93

Please sign in to comment.