logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: d9ea160a67597cc3a2531fef0ad506c9eaf5eec9
parent bf49aeb7561f668d3e9eb3a6afcc116a3ce4ddcc
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 13 Nov 2023 17:31:12 +0200

account for if there's no primary frontend setup

Diffstat:

Msrc/components/settings_modal/admin_tabs/frontends_tab.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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]