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

View File

@ -56,7 +56,7 @@ const FrontendsTab = {
}, },
getSuggestedRef (frontend) { getSuggestedRef (frontend) {
const defaultFe = this.adminDraft[':pleroma'][':frontends'][':primary'] 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 return defaultFe.ref
} else { } else {
return frontend.refs[0] return frontend.refs[0]