rusackas commented on a change in pull request #17792:
URL: https://github.com/apache/superset/pull/17792#discussion_r808434743
##########
File path: superset-frontend/src/dashboard/actions/dashboardState.js
##########
@@ -474,6 +480,21 @@ export function addSliceToDashboard(id, component) {
if (selectedSlice && selectedSlice.viz_type === 'filter_box') {
dispatch(addFilter(id, component, selectedSlice.form_data));
}
+
+ setTimeout(() => {
Review comment:
Agreed. I'm not sure what the 500ms is based on, but it feels arbitrary
compared to what's likely to happen in reality. I'm hopeful that there's
something we can `await` here. I'm not sure exactly what yet... will need to
dig a bit deeper.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]