Skip to content

Commit

Permalink
fix: exclude data vars from initLevels (#127)
Browse files Browse the repository at this point in the history
Fixes #126
  • Loading branch information
ToddFincannon authored Oct 8, 2021
1 parent df76872 commit 93a49cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ function sortInitVars() {

// Filter out vars with constant values.
sortedVars = R.reject(
R.propSatisfies(varType => varType === 'const' || varType === 'lookup', 'varType'),
R.propSatisfies(varType => varType === 'const' || varType === 'lookup' || varType === 'data', 'varType'),
sortedVars
)

Expand Down

0 comments on commit 93a49cf

Please sign in to comment.