forked from MapComplete/MapComplete
		
	Fix build
This commit is contained in:
		
							parent
							
								
									8dd1a0e107
								
							
						
					
					
						commit
						50f3e71d55
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -284,7 +284,7 @@ async function generateCsp(
 | 
				
			||||||
        if (typeof sv.needsUrls === "function") {
 | 
					        if (typeof sv.needsUrls === "function") {
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        apiUrls.push(...sv.needsUrls)
 | 
					        apiUrls.push(...(sv.needsUrls ?? []))
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const usedSpecialVisualisations = ValidationUtils.getSpecialVisualisationsWithArgs(layoutJson)
 | 
					    const usedSpecialVisualisations = ValidationUtils.getSpecialVisualisationsWithArgs(layoutJson)
 | 
				
			||||||
| 
						 | 
					@ -292,7 +292,7 @@ async function generateCsp(
 | 
				
			||||||
        if (typeof usedSpecialVisualisation === "string") {
 | 
					        if (typeof usedSpecialVisualisation === "string") {
 | 
				
			||||||
            continue
 | 
					            continue
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        const neededUrls = usedSpecialVisualisation.func.needsUrls
 | 
					        const neededUrls = usedSpecialVisualisation.func.needsUrls ?? []
 | 
				
			||||||
        if (typeof neededUrls === "function") {
 | 
					        if (typeof neededUrls === "function") {
 | 
				
			||||||
            apiUrls.push(...neededUrls(usedSpecialVisualisation.args))
 | 
					            apiUrls.push(...neededUrls(usedSpecialVisualisation.args))
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue