-
Notifications
You must be signed in to change notification settings - Fork 63
[WC-3198]: Custom chart: static/source data merge #2008
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
base: main
Are you sure you want to change the base?
Conversation
132106c to
dca6aef
Compare
| for (let i = 0; i < maxLen; i++) { | ||
| const staticTrace = (staticTraces[i] ?? {}) as Record<string, unknown>; | ||
| const dynamicTrace = (dynamicTraces[i] ?? {}) as Record<string, unknown>; | ||
| result.push(deepmerge(staticTrace, dynamicTrace, mergeOptions) as Data); |
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.
Instead of always passing mergeOptions can we create create our own function?
const deepmergePlotly = (a,b) => deepmerge(a, b, { arrayMerge: (_, source) => source })?
|
|
||
| ## [Unreleased] | ||
|
|
||
| ### Fixed |
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.
Is it a breaking change?
5b398b5 to
e251a40
Compare
e251a40 to
9b3fb3e
Compare
Pull request type
Bug fix (non-breaking change which fixes an issue)
Description
Custom chart doesn't merge Static data and Source attribute data properly.
What should be covered while testing?