mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -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