mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
fix(sqllab): unable to create new tabs (#21260)
This commit is contained in:
parent
944808a0ce
commit
034ee1c3c1
@ -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, ''),
|
||||
|
Loading…
Reference in New Issue
Block a user