aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-03-03 11:32:42 -0500
committerbobzel <zzzman@gmail.com>2021-03-03 11:32:42 -0500
commit0fb14423e900f4c808ac2db882f6425ef1acf072 (patch)
tree2fd0febebed87608f45f4abd9fc4c69bf664ad19 /src
parent0ed2f0d89efbf9830e95a06dbcaade136b5fe4d7 (diff)
from last
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/FunctionPlotBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FunctionPlotBox.tsx b/src/client/views/nodes/FunctionPlotBox.tsx
index ccbbb2364..bf49170f1 100644
--- a/src/client/views/nodes/FunctionPlotBox.tsx
+++ b/src/client/views/nodes/FunctionPlotBox.tsx
@@ -33,7 +33,7 @@ export class FunctionPlotBox extends ViewBoxBaseComponent<FieldViewProps, Equati
}
componentDidMount() {
this.props.setContentView?.(this);
- reaction(() => [this.dataDoc.data, this.dataDoc.xRange, this.dataDoc.yRange],
+ reaction(() => [DocListCast(this.dataDoc.data).lastElement()?.text, this.dataDoc.xRange, this.dataDoc.yRange],
() => this.createGraph());
}
getAnchor = () => {