Add undefined robustness
This commit is contained in:
parent
9cdcd0002b
commit
bb9b51e5f7
1 changed files with 5 additions and 1 deletions
|
@ -12,7 +12,11 @@
|
|||
* The names (keys) of the calculated tags. Each will normally start with an underscore (but in rare cases not)
|
||||
*/
|
||||
let calculatedTags: string[] = []
|
||||
for (const [name, _, __] of layer.calculatedTags ?? []) {
|
||||
for (const calculated of layer.calculatedTags ?? []) {
|
||||
if(calculated){
|
||||
continue
|
||||
}
|
||||
const name = calculated[0]
|
||||
calculatedTags.push(name)
|
||||
}
|
||||
let knownValues: Store<string[]> = tags.map(tags => Object.keys(tags))
|
||||
|
|
Loading…
Reference in a new issue