catch error

This commit is contained in:
Josh Hawkins 2024-09-14 07:05:31 -05:00
parent 46d0a65ef9
commit 872e4de488

View File

@ -193,7 +193,7 @@ export default function ObjectLifecycle({
};
useEffect(() => {
if (eventSequence) {
if (eventSequence && eventSequence.length > 0) {
setTimeIndex(eventSequence?.[current].timestamp);
handleSetBox(eventSequence?.[current].data.box ?? []);
setLifecycleZones(eventSequence?.[current].data.zones);