don't render plant when plant state is undefined (prevent crash)

This commit is contained in:
Joeri Exelmans 2025-10-27 11:40:27 +01:00
parent 8951380f9b
commit 7b6ce420c0

View file

@ -453,7 +453,7 @@ export function App() {
<option>{plantName}</option>
)}
</select>
{trace !== null &&
{trace !== null && trace.trace[trace.idx].plantState &&
<div>{
plant.render(
trace.trace[trace.idx].plantState,