1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-13 22:00:28 +05:30

use optional chaining

This commit is contained in:
Bnyro 2022-09-10 11:11:45 +02:00 committed by Kavin
parent 8899425a47
commit e81140531c
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -37,8 +37,8 @@ export default {
methods: {
async fetchConfig() {
this.fetchJson("confg.json").then(config => {
this.donationHref = config.donation_href;
this.statusPageHref = config.status_page_href;
this.donationHref = config?.donation_href;
this.statusPageHref = config?.status_page_href;
});
},
},