Skip to content

Commit

Permalink
fix: Fix merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelastic committed Sep 15, 2015
1 parent a4199a5 commit 3b5e8f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function renderTemplate({template, templateHelpers, data}) {
};
};
});
return data;
}

if (typeof template !== 'string' && typeof template !== 'function') {
Expand All @@ -44,13 +45,9 @@ function renderTemplate({template, templateHelpers, data}) {
}

if (typeof template === 'string') {
if (!data.helpers) {
data = addTemplateHelpersToData(data);
} else {
console.warn('TemplateHelpers not included because template data already contained a .helpers key');
}
data = addTemplateHelpersToData(data);

content = hogan.compile(this.props.template).render(data);
content = hogan.compile(template).render(data);
}

return content;
Expand Down
2 changes: 1 addition & 1 deletion widgets/range-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function rangeSlider({
helper.addNumericRefinement(facetName, '<=', newValues[1]);
helper.search();
},
render(results, state, helper) {
render({results, helper}) {
var stats = results.getFacetStats(facetName);
var currentRefinement = this._getCurrentRefinement(helper);

Expand Down

0 comments on commit 3b5e8f4

Please sign in to comment.