Skip to content

Commit

Permalink
Fix merge locals with global
Browse files Browse the repository at this point in the history
  • Loading branch information
thewebartisan7 committed Oct 25, 2022
1 parent 36db959 commit c7c7ff7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "posthtml-component",
"version": "1.0.0-beta.7",
"version": "1.0.0-beta.8",
"description": "PostHTML Components Blade-like with slots, attributes as props and custom tag",
"license": "MIT",
"repository": "thewebartisan7/posthtml-components",
Expand Down
2 changes: 1 addition & 1 deletion src/locals.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = (currentNode, nextNode, filledSlots, options) => {
}

// Merge with global
attributes = mergeWith(options.expressions.locals, attributes, options.mergeCustomizer);
attributes = mergeWith({}, options.expressions.locals, attributes, options.mergeCustomizer);

// There is no way to know here what are locals
// and what attributes passed to component
Expand Down

0 comments on commit c7c7ff7

Please sign in to comment.