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
(cherry picked from commit 962eb08)
  • Loading branch information
kristw committed Sep 12, 2018
1 parent 38b8047 commit 1c30480
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 1c30480

Please sign in to comment.