commit: a190ef2c562da20f4e9050734acc25d51cd5ca0a
parent 75eea5f2b2c03cd26f26c273bdfdcfcc13275fe6
Author: Henry Jameson <me@hjkos.com>
Date: Sun, 19 Nov 2023 10:02:42 +0200
fix crash added in this MR
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/settings_modal/admin_tabs/frontends_tab.vue b/src/components/settings_modal/admin_tabs/frontends_tab.vue
@@ -135,8 +135,8 @@
class="button button-default btn"
type="button"
:disabled="
- adminDraft[':pleroma'][':frontends'][':primary'].name === frontend.name &&
- adminDraft[':pleroma'][':frontends'][':primary'].ref === frontend.refs[0]
+ adminDraft[':pleroma'][':frontends'][':primary']?.name === frontend.name &&
+ adminDraft[':pleroma'][':frontends'][':primary']?.ref === frontend.refs[0]
"
@click="setDefault(frontend)"
>