Skip to content

Commit 2e214c7

Browse files
committed
Idiomatic extendFlat usage
1 parent 94dc00d commit 2e214c7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/traces/quiver/attributes.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,9 @@ var attrs = {
193193
}
194194
};
195195

196-
// Extend with base attributes (includes hoverinfo, etc.)
197-
extendFlat(attrs, baseAttrs);
196+
// Extend with base attributes (includes hoverinfo, etc.), keeping the
197+
// quiver-specific attributes layered on top of the shared base attributes.
198+
attrs = extendFlat({}, baseAttrs, attrs);
198199

199200
// Add hoverinfo with proper flags for quiver
200201
// We need to create a new object to avoid mutating the shared base attributes

0 commit comments

Comments
 (0)