Skip to content

Commit

Permalink
fix: Make sure warnings are shown every time Formula changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gwhitney committed Nov 17, 2024
1 parent 72c41e9 commit a637a7f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/sequences/Formula.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Cached} from './Cached'
import {SequenceExportModule} from './SequenceInterface'

import {math, MathFormula} from '@/shared/math'
import type {GenericParamDescription} from '@/shared/Paramable'
import type {ParamValues, GenericParamDescription} from '@/shared/Paramable'
import {ParamType} from '@/shared/ParamType'

/** md
Expand Down Expand Up @@ -114,6 +114,11 @@ class Formula extends Cached(paramDesc) {
this.name = formulaMark + this.formula.source
}

assignParameters(realized?: ParamValues<GenericParamDescription>) {
this.nErrors = 0
return super.assignParameters(realized)
}

calculate(n: bigint) {
let result = 0
let resultType = ''
Expand Down

0 comments on commit a637a7f

Please sign in to comment.