mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
Handle undefined (#17183)
This commit is contained in:
parent
860e481a97
commit
91199c30d8
@ -24,7 +24,7 @@ export default function getLeafComponentIdFromPath(directPathToChild = []) {
|
||||
|
||||
while (currentPath.length) {
|
||||
const componentId = currentPath.pop();
|
||||
const componentType = componentId.split('-')[0];
|
||||
const componentType = componentId && componentId.split('-')[0];
|
||||
|
||||
if (!IN_COMPONENT_ELEMENT_TYPES.includes(componentType)) {
|
||||
return componentId;
|
||||
|
Loading…
Reference in New Issue
Block a user