eschutho commented on code in PR #19855: URL: https://github.com/apache/superset/pull/19855#discussion_r860309233
########## superset-frontend/src/explore/components/DatasourcePanel/index.tsx: ########## @@ -190,6 +217,35 @@ export default function DataSourcePanel({ [_columns], ); + const placeholderSlDataset = { + sl_table: [], + query: [], + saved_query: [], + }; + + // eslint-disable-next-line no-param-reassign + datasource.sl_dataset = placeholderSlDataset; Review Comment: I think the value that you're looking for is `datasource.type` which will come from the api. -- 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: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org