superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grace...@apache.org
Subject [incubator-superset] branch master updated: fix Object.assign try to write to read-only option.style (#5860)
Date Tue, 11 Sep 2018 23:57:13 GMT
This is an automated email from the ASF dual-hosted git repository.

graceguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 962eb08  fix Object.assign try to write to read-only option.style (#5860)
962eb08 is described below

commit 962eb0860c992c1b2af3e2b5b93b2f5a31c15cf9
Author: Krist Wongsuphasawat <krist.wongz@gmail.com>
AuthorDate: Tue Sep 11 16:57:11 2018 -0700

    fix Object.assign try to write to read-only option.style (#5860)
---
 superset/assets/src/components/VirtualizedRendererWrap.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/assets/src/components/VirtualizedRendererWrap.jsx b/superset/assets/src/components/VirtualizedRendererWrap.jsx
index 3282112..2f4e063 100644
--- a/superset/assets/src/components/VirtualizedRendererWrap.jsx
+++ b/superset/assets/src/components/VirtualizedRendererWrap.jsx
@@ -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}
       >


Mime
View raw message