mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 21:59:50 +01:00
Fix: add optional chaining for info widgets options
This commit is contained in:
@@ -60,7 +60,7 @@ export function getBottomBlock(children) {
|
|||||||
|
|
||||||
export default function Container({ children = [], options, additionalClassNames = "" }) {
|
export default function Container({ children = [], options, additionalClassNames = "" }) {
|
||||||
const { settings } = useContext(SettingsContext);
|
const { settings } = useContext(SettingsContext);
|
||||||
return options.href ? (
|
return options?.href ? (
|
||||||
<a
|
<a
|
||||||
href={options.href}
|
href={options.href}
|
||||||
target={options.target ?? settings.target ?? "_blank"}
|
target={options.target ?? settings.target ?? "_blank"}
|
||||||
|
|||||||
Reference in New Issue
Block a user