mirror of
https://github.com/apache/superset.git
synced 2024-09-18 19:49:37 -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) {
|
if (queryEditors.length > 0) {
|
||||||
const mappedUntitled = queryEditors.filter(qe =>
|
const mappedUntitled = queryEditors.filter(qe =>
|
||||||
qe.name.match(untitledQueryRegex),
|
qe.name?.match(untitledQueryRegex),
|
||||||
);
|
);
|
||||||
const untitledQueryNumbers = mappedUntitled.map(
|
const untitledQueryNumbers = mappedUntitled.map(
|
||||||
qe => +qe.name.replace(untitledQuery, ''),
|
qe => +qe.name.replace(untitledQuery, ''),
|
||||||
|
Loading…
Reference in New Issue
Block a user