fix(editor): Add optional chaining to execution socket event (no-changelog) (#11499)

This commit is contained in:
Alex Grozav 2024-11-01 15:41:00 +02:00 committed by GitHub
parent 4ef804c8d3
commit aa7bb3ac08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,7 +252,7 @@ export function usePushConnection({ router }: { router: ReturnType<typeof useRou
if (activeRunData) {
for (const key of Object.keys(activeRunData)) {
if (
pushData.data.data.resultData.runData[key]?.[0]?.data?.main?.[0]?.[0]?.json
pushData.data?.data?.resultData?.runData?.[key]?.[0]?.data?.main?.[0]?.[0]?.json
?.isArtificialRecoveredEventItem === true &&
activeRunData[key].length > 0
)