Skip to content

Commit

Permalink
info can be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Oct 20, 2023
1 parent 2237fcc commit 43290a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/dashboards/hacs-dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class HacsDashboard extends LitElement {
label: this.hacs.localize("menu.documentation"),
action: () =>
mainWindow.open(
documentationUrl({ experimental: this.hacs.info.experimental }),
documentationUrl({ experimental: this.hacs.info?.experimental }),
"_blank",
"noreferrer=true"
),
Expand All @@ -202,7 +202,7 @@ export class HacsDashboard extends LitElement {
action: () =>
mainWindow.open(
documentationUrl({
experimental: this.hacs.info.experimental,
experimental: this.hacs.info?.experimental,
path: "/docs/issues",
}),
"_blank",
Expand Down Expand Up @@ -346,7 +346,7 @@ export class HacsDashboard extends LitElement {
cancel: () => {
mainWindow.open(
documentationUrl({
experimental: this.hacs.info.experimental,
experimental: this.hacs.info?.experimental,
path: "/docs/basic/dashboard",
}),
"_blank",
Expand Down
6 changes: 3 additions & 3 deletions src/data/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export const aboutHacsmarkdownContent = (hacs: Hacs) => `
**${hacs.localize("dialog_about.useful_links")}:**
- [General documentation](${documentationUrl({ experimental: hacs.info.experimental })})
- [General documentation](${documentationUrl({ experimental: hacs.info?.experimental })})
- [Configuration](${documentationUrl({
experimental: hacs.info.experimental,
experimental: hacs.info?.experimental,
path: "/docs/configuration/start",
})})
- [FAQ](${documentationUrl({ experimental: hacs.info.experimental, path: "/docs/faq/what" })})
- [FAQ](${documentationUrl({ experimental: hacs.info?.experimental, path: "/docs/faq/what" })})
- [GitHub](https://github.com/hacs)
- [Discord](https://discord.gg/apgchf8)
- [Become a GitHub sponsor? ❤️](https://github.com/sponsors/ludeeus)
Expand Down

0 comments on commit 43290a5

Please sign in to comment.