Implement adding expression and var decls

This commit is contained in:
2022-04-09 17:48:41 -05:00
parent 18252912a9
commit 4a3e92b910
8 changed files with 296 additions and 17 deletions

View File

@@ -6,12 +6,11 @@ import Katex from './Katex.vue'
const props = defineProps<{
statement: MathStatement,
evaluation: EvaluationResult,
renderVersion: number,
evaluation?: EvaluationResult,
}>()
const getValueStatement = (): Maybe<MathStatement> => {
const value = props.evaluation.statements[props.statement.id]
const value = props.evaluation?.statements?.[props.statement.id]
if ( value ) {
return MathStatement.temp(String(value))
}