-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cdp): fixes broken dictonary property adding #29514
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Fixed a bug in the DictionaryField component that prevented users from adding additional dictionary properties in the CDP pipeline configuration.
- Added
prevFilteredEntriesRef
usinguseRef
infrontend/src/scenes/pipeline/hogfunctions/HogFunctionInputs.tsx
to properly track and compare previous entries - Improved deep comparison logic for array elements to prevent unnecessary re-renders
- Updated
useEffect
dependencies to ensure proper propagation of changes to parent components
1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
frontend/src/scenes/pipeline/hogfunctions/HogFunctionInputs.tsx
Outdated
Show resolved
Hide resolved
Size Change: 0 B Total Size: 9.93 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
3be556d
to
9e90083
Compare
Co-authored-by: Ben White <[email protected]>
Problem
saving dictionary properties was broken as in one could not add additional properties.
Changes
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
How did you test this code?