Skip to content

Commit

Permalink
Filters:
Browse files Browse the repository at this point in the history
- Optional chaining when accessing column_name
  • Loading branch information
Antonio-RiveroMartnez committed May 8, 2023
1 parent 699870a commit 41c4a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/explore/exploreUtils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export const getSimpleSQLExpression = (subject, operator, comparator) => {
.indexOf(operator) >= 0;
// If returned value is an object after changing dataset
let expression =
typeof subject === 'object' ? subject.column_name ?? '' : subject ?? '';
typeof subject === 'object' ? subject?.column_name ?? '' : subject ?? '';
if (subject && operator) {
expression += ` ${operator}`;
const firstValue =
Expand Down

0 comments on commit 41c4a07

Please sign in to comment.