don't render plant when plant state is undefined (prevent crash)
This commit is contained in:
parent
8951380f9b
commit
7b6ce420c0
1 changed files with 1 additions and 1 deletions
|
|
@ -453,7 +453,7 @@ export function App() {
|
||||||
<option>{plantName}</option>
|
<option>{plantName}</option>
|
||||||
)}
|
)}
|
||||||
</select>
|
</select>
|
||||||
{trace !== null &&
|
{trace !== null && trace.trace[trace.idx].plantState &&
|
||||||
<div>{
|
<div>{
|
||||||
plant.render(
|
plant.render(
|
||||||
trace.trace[trace.idx].plantState,
|
trace.trace[trace.idx].plantState,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue