Skip to content

Commit 034ee1c

Browse files
authored
fix(sqllab): unable to create new tabs (#21260)
1 parent 944808a commit 034ee1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

superset-frontend/src/SqlLab/utils/newQueryTabName.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const newQueryTabName = (
3131

3232
if (queryEditors.length > 0) {
3333
const mappedUntitled = queryEditors.filter(qe =>
34-
qe.name.match(untitledQueryRegex),
34+
qe.name?.match(untitledQueryRegex),
3535
);
3636
const untitledQueryNumbers = mappedUntitled.map(
3737
qe => +qe.name.replace(untitledQuery, ''),

0 commit comments

Comments
 (0)