hughhhh commented on a change in pull request #11936:
URL:
https://github.com/apache/incubator-superset/pull/11936#discussion_r540333257
##########
File path: superset-frontend/src/components/ImportModal/index.tsx
##########
@@ -68,11 +145,11 @@ const ImportChartModal:
FunctionComponent<ImportChartModalProps> = ({
const {
state: { passwordsNeeded },
importResource,
- } = useImportResource<ChartObject>('chart', t('chart'), handleErrorMsg);
+ } = useImportResource<any>(resourceName, resourceLabel, handleErrorMsg);
Review comment:
+1 with elizabeth, where you union all the types allowed to be imported.
@eschutho that's what you meant right
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]