account for if there's no primary frontend setup

This commit is contained in:
Henry Jameson 2023-11-13 17:31:12 +02:00
parent bf49aeb756
commit d9ea160a67
1 changed files with 1 additions and 1 deletions

View File

@ -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]