Fix: add optional chaining for info widgets options

pull/4377/head
shamoon 2 months ago
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…
Cancel
Save