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