From a637a7fed4ad5c2180e45d2ab6ffce7603b8b922 Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Sat, 16 Nov 2024 22:58:37 -0800 Subject: [PATCH] fix: Make sure warnings are shown every time Formula changes --- src/sequences/Formula.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sequences/Formula.ts b/src/sequences/Formula.ts index 31c515fe..e6bab02f 100644 --- a/src/sequences/Formula.ts +++ b/src/sequences/Formula.ts @@ -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 @@ -114,6 +114,11 @@ class Formula extends Cached(paramDesc) { this.name = formulaMark + this.formula.source } + assignParameters(realized?: ParamValues) { + this.nErrors = 0 + return super.assignParameters(realized) + } + calculate(n: bigint) { let result = 0 let resultType = ''