Skip to content

Commit

Permalink
additional safeguard (apache#14953)
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi authored and cccs-RyanS committed Dec 17, 2021
1 parent af2b0d6 commit 437362f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/SqlLab/components/ResultSet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ export default class ResultSet extends React.PureComponent<
let limitMessage;
const limitReached = results?.displayLimitReached;
const limit = queryLimit || results.query.limit;
const isAdmin = !!this.props.user?.roles.Admin;
const isAdmin = !!this.props.user?.roles?.Admin;
const displayMaxRowsReachedMessage = {
withAdmin: t(
`The number of results displayed is limited to %(rows)d by the configuration DISPLAY_MAX_ROWS. `,
Expand Down

0 comments on commit 437362f

Please sign in to comment.