mirror of
https://github.com/apache/superset.git
synced 2026-04-26 19:44:58 +00:00
fix: Fix dataset condition to allow query for datasets in sqllab (#12357)
This commit is contained in:
@@ -171,7 +171,7 @@ export default class ResultSet extends React.PureComponent<
|
||||
appContainer?.getAttribute('data-bootstrap') || '{}',
|
||||
);
|
||||
|
||||
if (bootstrapData.user && bootstrapData.user.id) {
|
||||
if (bootstrapData.user && bootstrapData.user.userId) {
|
||||
const datasets = await getByUser(bootstrapData.user.userId);
|
||||
const userDatasetsOwned = datasets.map(
|
||||
(r: { table_name: string; id: number }) => ({
|
||||
|
||||
Reference in New Issue
Block a user