account for if there's no primary frontend setup
This commit is contained in:
parent
bf49aeb756
commit
d9ea160a67
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue