Skip to content

Commit

Permalink
fix Object.assign try to write to read-only option.style (apache#5860)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored and betodealmeida committed Oct 12, 2018
1 parent ba21614 commit 3f3b543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/assets/src/components/VirtualizedRendererWrap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function VirtualizedRendererWrap(renderer) {
<div
className={className.join(' ')}
key={key}
style={Object.assign(option.style || {}, style)}
style={{ ...(option.style || {}), ...style }}
title={option.title}
{...events}
>
Expand Down

0 comments on commit 3f3b543

Please sign in to comment.