williaster commented on a change in pull request #4791: apply new Dashboard 
builder to dashboard
URL: 
https://github.com/apache/incubator-superset/pull/4791#discussion_r180878059
 
 

 ##########
 File path: 
superset/assets/javascripts/dashboard/components/SliceAdderContainer.jsx
 ##########
 @@ -0,0 +1,25 @@
+import { bindActionCreators } from 'redux';
+import { connect } from 'react-redux';
+
+import * as allSlicesActions from '../actions/allSlices';
+import SliceAdder from './SliceAdder';
+
+function mapStateToProps({ allSlices, dashboard }) {
+  return {
+    userId: dashboard.userId,
+    selectedSliceIds: dashboard.dashboard.sliceIds,
+    slices: allSlices.slices,
+    isLoading: allSlices.isLoading,
+    errorMsg: allSlices.errorMsg,
 
 Review comment:
   why don't we just spell out `Message`? 

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


With regards,
Apache Git Services

Reply via email to