Skip to content

Commit

Permalink
fix(sqllab): unable to create new tabs (#21260)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark authored Aug 30, 2022
1 parent 944808a commit 034ee1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/SqlLab/utils/newQueryTabName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const newQueryTabName = (

if (queryEditors.length > 0) {
const mappedUntitled = queryEditors.filter(qe =>
qe.name.match(untitledQueryRegex),
qe.name?.match(untitledQueryRegex),
);
const untitledQueryNumbers = mappedUntitled.map(
qe => +qe.name.replace(untitledQuery, ''),
Expand Down

0 comments on commit 034ee1c

Please sign in to comment.