zhaoyongjie commented on code in PR #21497:
URL: https://github.com/apache/superset/pull/21497#discussion_r973873175
##########
superset-frontend/src/explore/components/SaveModal.tsx:
##########
@@ -183,6 +182,14 @@ class SaveModal extends React.Component<SaveModalProps,
SaveModalState> {
}
}
+ // Get chart dashboards
+ let sliceDashboards: number[];
+ promise = promise
+ .then(() => this.props.actions.getSliceDashboards(this.props.slice))
+ .then(dashboards => {
+ sliceDashboards = dashboards;
+ });
+
Review Comment:
nits:
```suggestion
const sliceDashboards = await this.props.actions.getSliceDashboards(
this.props.slice,
);
```
--
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]