diff options
| author | Henry Jameson <me@hjkos.com> | 2023-11-13 17:31:12 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2023-11-13 17:31:12 +0200 |
| commit | d9ea160a67597cc3a2531fef0ad506c9eaf5eec9 (patch) | |
| tree | a2a1c8285c1d8ea213f1361d6e210b90415d1270 /src | |
| parent | bf49aeb7561f668d3e9eb3a6afcc116a3ce4ddcc (diff) | |
account for if there's no primary frontend setup
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/settings_modal/admin_tabs/frontends_tab.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/settings_modal/admin_tabs/frontends_tab.js b/src/components/settings_modal/admin_tabs/frontends_tab.js index 57af2c27..8163af59 100644 --- a/src/components/settings_modal/admin_tabs/frontends_tab.js +++ b/src/components/settings_modal/admin_tabs/frontends_tab.js @@ -56,7 +56,7 @@ const FrontendsTab = { }, getSuggestedRef (frontend) { const defaultFe = this.adminDraft[':pleroma'][':frontends'][':primary'] - if (defaultFe.name === frontend.name && this.canInstall(defaultFe)) { + if (defaultFe?.name === frontend.name && this.canInstall(defaultFe)) { return defaultFe.ref } else { return frontend.refs[0] |
