Fix: add optional chaining for info widgets options
This commit is contained in:
1 parent
8cc6640d04
commit
c58f59c105
1 file changed
+1
-1
@@ -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"}
|
||||
|
||||
Reference in new issue
Block a user