fix: Fix dataset condition to allow query for datasets in sqllab (#12357)

This commit is contained in:
Hugh A. Miles II 2021-01-08 15:36:19 -05:00 committed by GitHub
parent fd15dff60e
commit 7c8ead85c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 }) => ({