mirror of
https://github.com/apache/superset.git
synced 2026-05-12 03:15:55 +00:00
fix(sqllab): unable to create new tabs (#21260)
This commit is contained in:
@@ -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, ''),
|
||||
|
||||
Reference in New Issue
Block a user