Skip to content

Commit

Permalink
Fix default variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
joelostblom committed Nov 11, 2023
1 parent 5dfabea commit c820639
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compile/data/density.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export class DensityTransformNode extends DataFlowNode {
this.transform = duplicate(transform); // duplicate to prevent side effects
const specifiedAs = this.transform.as ?? [undefined, undefined];
this.transform.as = [specifiedAs[0] ?? 'value', specifiedAs[1] ?? 'density'];
const this.transform.resolve = 'independent';
const resolve = 'independent';
this.transform.resolve = resolve;
}

public dependentFields() {
Expand Down

0 comments on commit c820639

Please sign in to comment.