0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:17:50 +01:00

fix: fix filtering of raw_id (#26330)

This commit is contained in:
David Newell 2024-11-21 18:09:20 +00:00 committed by GitHub
parent fb17df2212
commit 960762af45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ export const stackFrameLogic = kea<stackFrameLogicType>([
loadFrameContexts: async ({ frames }: { frames: ErrorTrackingStackFrame[] }) => {
const loadedFrameIds = Object.keys(values.frameContexts)
const ids = frames
.filter(({ raw_id }) => loadedFrameIds.includes(raw_id))
.filter(({ raw_id }) => !loadedFrameIds.includes(raw_id))
.map(({ raw_id }) => raw_id)
const response = await api.errorTracking.fetchStackFrames(ids)
return { ...values.frameContexts, ...response }