kopia lustrzana https://github.com/shoelace-style/shoelace
don't break if dependency doesn't exist
rodzic
0b4dc3f6a8
commit
5bea4269a7
|
@ -200,7 +200,7 @@
|
|||
// Recursively fetch subdependencies
|
||||
function getDependencies(tag) {
|
||||
const component = allComponents.find(c => c.tag === tag);
|
||||
if (!component && !Array.isArray(component.dependencies)) {
|
||||
if (!component || !Array.isArray(component.dependencies)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue