Skip to content

Commit

Permalink
Initialize get_slot_changes to null when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmischka committed May 6, 2019
1 parent 39b1fe2 commit 003cf39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compile/render-dom/wrappers/Slot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export default class SlotWrapper extends Wrapper {
const ${get_slot_context} = (${arg}) => (${stringify_props(context_props)});
`);
} else {
get_slot_changes = 'null';
get_slot_context = 'null';
}

Expand Down

0 comments on commit 003cf39

Please sign in to comment.