Skip to content

Commit

Permalink
fix Object.assign try to write to read-only option.style (#5860)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored and Grace Guo committed Sep 11, 2018
1 parent 01212c3 commit 962eb08
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 962eb08

Please sign in to comment.