You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/01/12 23:42:41 UTC

[GitHub] [incubator-superset] mistercrunch commented on a change in pull request #8876: [dashboard] Modal for editing dashboard properties & metadata

mistercrunch commented on a change in pull request #8876: [dashboard] Modal for editing dashboard properties & metadata
URL: https://github.com/apache/incubator-superset/pull/8876#discussion_r365620863
 
 

 ##########
 File path: superset/assets/src/dashboard/actions/dashboardLayout.js
 ##########
 @@ -213,10 +213,8 @@ export function handleComponentDrop(dropResult) {
     } else if (
       destination &&
       source &&
-      !(
-        // ensure it has moved
-        (destination.id === source.id && destination.index === source.index)
-      )
+      !// ensure it has moved
 
 Review comment:
   It looks odd to me to have the comment in between the `!` and the `(`, seems like the kind of stuff that different JS interpreters might behave differently around...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org