Skip to content

Commit

Permalink
Don't set null to switch_instance_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiho committed May 16, 2018
1 parent 83d2251 commit 247cfcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compile/nodes/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ export default class Component extends Node {
const conditions = [...allDependencies].map(dep => `changed.${dep}`).join(' || ');

updates.push(deindent`
var ${name_changes} = ${allDependencies.size === 1 ? `${conditions}` : `(${conditions})`} && @getSpreadUpdate(${levels}, [
var ${name_changes} = ${allDependencies.size === 1 ? `${conditions}` : `(${conditions})`} ? @getSpreadUpdate(${levels}, [
${changes.join(',\n')}
]);
]) : ${name_changes};
`);
} else {
this.attributes
Expand Down

0 comments on commit 247cfcf

Please sign in to comment.