mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 00:10:57 +00:00 
			
		
		
		
	Fix: add optional chaining for info widgets options
This commit is contained in:
		
							parent
							
								
									8cc6640d04
								
							
						
					
					
						commit
						c58f59c105
					
				@ -60,7 +60,7 @@ export function getBottomBlock(children) {
 | 
			
		||||
 | 
			
		||||
export default function Container({ children = [], options, additionalClassNames = "" }) {
 | 
			
		||||
  const { settings } = useContext(SettingsContext);
 | 
			
		||||
  return options.href ? (
 | 
			
		||||
  return options?.href ? (
 | 
			
		||||
    <a
 | 
			
		||||
      href={options.href}
 | 
			
		||||
      target={options.target ?? settings.target ?? "_blank"}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user