Skip to content

Commit

Permalink
Fix: add optional chaining for info widgets options
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Dec 2, 2024
1 parent 8cc6640 commit c58f59c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/widgets/widget/container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit c58f59c

Please sign in to comment.